From 33ebe9847288af7cf8a976df1161531417e1719f Mon Sep 17 00:00:00 2001 From: Carter Hesterman Date: Wed, 27 Nov 2024 08:19:20 -0700 Subject: [PATCH] modify build --- .github/workflows/build.yaml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1e2f111..6039588 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,5 +1,6 @@ -name: Build APWorld - +name: Build +permissions: + contents: write on: push: tags: ["v*"] @@ -32,7 +33,7 @@ jobs: id: tag run: | EVENT="${{ github.event_name }}" - TAG_INPUT="${{ github.event.inputs.tag }}" + TAG_INPUT="${{ inputs.tag }}" REF="${{ github.ref_name }}" SHA="$(git rev-parse --short=7 ${{ github.sha }})" @@ -49,22 +50,11 @@ jobs: with: name: metroidprime_apworld-${{ steps.tag.outputs.tag }}-${{ matrix.python-version }} path: build/target/metroidprime_apworld-${{ steps.tag.outputs.tag }}.zip - - release: - name: Create Release - runs-on: ubuntu-latest - needs: bundle - if: github.ref_type == 'tag' - steps: - - uses: actions/checkout@v4 - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - path: build/target - uses: softprops/action-gh-release@v2 + if: github.ref_type == 'tag' with: name: ${{ github.ref_name }} prerelease: ${{ contains(github.ref_name, '-rc') }} draft: true generate_release_notes: true - files: build/target/*.zip \ No newline at end of file + files: build/target/metroidprime_apworld-${{ steps.tag.outputs.tag }}-${{ matrix.python-version }}.zip