Add release script and workflow for sound converter

This commit is contained in:
Gwilym Kuiper 2021-10-18 20:24:52 +01:00
parent 626e00bb56
commit ed5dbb5c0c
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,20 @@
name: Publish agb-sound-converter
on:
push:
tags:
- agb-sound-converter/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-sound-converter
run: cargo publish
working-directory: ./agb-sound-converter

View file

@ -35,6 +35,10 @@ case "$PROJECT" in
DIRECTORY="agb-image-converter"
TAGNAME="agb-image-converter/v$VERSION"
;;
agb-sound-converter)
DIRECTORY="agb-sound-converter"
TAGNAME="agb-sound-converter/v$VERSION"
;;
agb-macros)
DIRECTORY="agb-macros"
TAGNAME="agb-macros/v$VERSION"