2021-06-20 23:44:40 +01:00
|
|
|
name: Publish agb
|
|
|
|
|
2021-06-20 22:58:54 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
2021-06-20 23:59:16 +01:00
|
|
|
- name: Install build tools
|
|
|
|
run: sudo apt-get update && sudo apt-get install build-essential binutils-arm-none-eabi -y
|
2021-06-20 22:58:54 +01:00
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Login to crates.io
|
|
|
|
run: cargo login ${{ secrets.CRATE_API }}
|
|
|
|
- name: Publish agb
|
|
|
|
run: cargo publish
|
2021-11-24 22:44:11 +00:00
|
|
|
working-directory: ./agb
|
|
|
|
|
|
|
|
- name: Update template repo
|
|
|
|
env:
|
|
|
|
GITHUB_USERNAME: gwilymk
|
|
|
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
|
|
|
run: bash .github/scripts/update-template-repo.sh
|