From 71e2e64c4887ceabd264e12edc8f7689d1fbbd96 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Wed, 12 Jan 2022 22:47:59 +0000 Subject: [PATCH] Replace all the crate builds with a single 'publish subcrate' --- .github/workflows/publish-agb-macros.yml | 20 ------------------- .github/workflows/publish-image-converter.yml | 20 ------------------- .github/workflows/publish-sound-converter.yml | 20 ------------------- ...h-agb-fixnum.yml => publish-sub-crate.yml} | 9 ++++----- 4 files changed, 4 insertions(+), 65 deletions(-) delete mode 100644 .github/workflows/publish-agb-macros.yml delete mode 100644 .github/workflows/publish-image-converter.yml delete mode 100644 .github/workflows/publish-sound-converter.yml rename .github/workflows/{publish-agb-fixnum.yml => publish-sub-crate.yml} (71%) diff --git a/.github/workflows/publish-agb-macros.yml b/.github/workflows/publish-agb-macros.yml deleted file mode 100644 index 53783780..00000000 --- a/.github/workflows/publish-agb-macros.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Publish agb-macros - -on: - push: - tags: - - agb-macros/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-macros - run: cargo publish - working-directory: ./agb-macros \ No newline at end of file diff --git a/.github/workflows/publish-image-converter.yml b/.github/workflows/publish-image-converter.yml deleted file mode 100644 index 8dfb3844..00000000 --- a/.github/workflows/publish-image-converter.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Publish agb-image-converter - -on: - push: - tags: - - agb-image-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-image-converter - run: cargo publish - working-directory: ./agb-image-converter \ No newline at end of file diff --git a/.github/workflows/publish-sound-converter.yml b/.github/workflows/publish-sound-converter.yml deleted file mode 100644 index 6ac465fa..00000000 --- a/.github/workflows/publish-sound-converter.yml +++ /dev/null @@ -1,20 +0,0 @@ -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 \ No newline at end of file diff --git a/.github/workflows/publish-agb-fixnum.yml b/.github/workflows/publish-sub-crate.yml similarity index 71% rename from .github/workflows/publish-agb-fixnum.yml rename to .github/workflows/publish-sub-crate.yml index 3ff76916..04103352 100644 --- a/.github/workflows/publish-agb-fixnum.yml +++ b/.github/workflows/publish-sub-crate.yml @@ -1,9 +1,9 @@ -name: Publish agb-fixnum +name: Publish sub crate on: push: tags: - - agb-fixnum/v* + - */v* jobs: build: @@ -15,6 +15,5 @@ jobs: uses: actions/checkout@v2 - name: Login to crates.io run: cargo login ${{ secrets.CRATE_API }} - - name: Publish agb-fixnum - run: cargo publish - working-directory: ./agb-fixnum \ No newline at end of file + - name: Publish crate + run: bash .github/scripts/publish-crate.sh