From d74c876238ad609310626af6dcb2f08343d90739 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 7 Aug 2021 16:43:50 +0100 Subject: [PATCH] Add release script and workflow to release agb-entry --- .github/workflows/publish-agb-entry.yml | 20 ++++++++++++++++++++ release.sh | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/publish-agb-entry.yml diff --git a/.github/workflows/publish-agb-entry.yml b/.github/workflows/publish-agb-entry.yml new file mode 100644 index 00000000..c132ca60 --- /dev/null +++ b/.github/workflows/publish-agb-entry.yml @@ -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 \ No newline at end of file diff --git a/release.sh b/release.sh index 7f9a64f8..bd45f28f 100755 --- a/release.sh +++ b/release.sh @@ -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"