Add release script and workflow to release agb-entry

This commit is contained in:
Gwilym Kuiper 2021-08-07 16:43:50 +01:00
parent 739f81dd30
commit d74c876238
2 changed files with 24 additions and 0 deletions

20
.github/workflows/publish-agb-entry.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Publish agb-entry
on:
push:
tags:
- agb-entry/v*
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install build tools
run: sudo apt-get update && sudo apt-get install build-essential binutils-arm-none-eabi -y
- name: Check out repository
uses: actions/checkout@v2
- name: Login to crates.io
run: cargo login ${{ secrets.CRATE_API }}
- name: Publish agb-entry
run: cargo publish
working-directory: ./agb-entry

View file

@ -28,6 +28,10 @@ case "$PROJECT" in
DIRECTORY="agb-image-converter"
TAGNAME="agb-image-converter/v$VERSION"
;;
agb-entry)
DIRECTORY="agb-entry"
TAGNAME="agb-entry/v$VERSION"
;;
mgba-test-runner)
DIRECTORY="mgba-test-runner"
TAGNAME="mgba-test-runner/v$VERSION"