Skip to content

Commit

Permalink
modify build
Browse files Browse the repository at this point in the history
  • Loading branch information
hesto2 committed Nov 27, 2024
1 parent 95b96c9 commit 33ebe98
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Build APWorld

name: Build
permissions:
contents: write
on:
push:
tags: ["v*"]
Expand Down Expand Up @@ -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 }})"
Expand All @@ -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
files: build/target/metroidprime_apworld-${{ steps.tag.outputs.tag }}-${{ matrix.python-version }}.zip

0 comments on commit 33ebe98

Please sign in to comment.