diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml index e8b60454..adb41603 100644 --- a/.github/workflows/tagged-release.yml +++ b/.github/workflows/tagged-release.yml @@ -1,9 +1,10 @@ name: tagged-release on: - push: - tags: - - "v*" + workflow_dispatch: + push: + tags: + - "v*" jobs: tagged-release: @@ -27,23 +28,12 @@ jobs: command: install args: cargo-binutils - - name: Build Debug - uses: actions-rs/cargo@v1 - with: - command: build - - name: Build Release uses: actions-rs/cargo@v1 with: command: build args: --release - - name: Dump Debug Binary - uses: actions-rs/cargo@v1 - with: - command: objcopy - args: -- -O binary booster-debug.bin - - name: Dump Release Binary uses: actions-rs/cargo@v1 with: @@ -53,6 +43,6 @@ jobs: - name: Generate Release env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' - VERSION_TAG: ${{ github.event.ref##*/ }} + VERSION_TAG: ${GITHUB_REF##*/} run: | - hub release create -a target/thumbv7em/debug/booster -a target/thumbv7em/release/booster -a booster-debug.bin -a booster-release.bin -m "Release ${{env.VERSION_TAG}}" + hub release create -a "target/thumbv7em-none-eabihf/release/booster#booster-release" -a "booster-release.bin" -m "Release ${{env.VERSION_TAG}}" ${{env.VERSION_TAG}}