alpha9 #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Release on Tag | |
| on: | |
| push: | |
| tags: | |
| - "*" # runs for any tag push | |
| permissions: | |
| contents: write # allows creating releases and uploading assets | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| ssh-key: ${{ secrets.SSH_KEY }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Run build script | |
| working-directory: output_build | |
| run: | | |
| mkdir -p output | |
| python3 make_outputs.py "${{ github.ref_name }}" | |
| # Create the release if it doesn't exist | |
| - name: Create GitHub Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: "Blightfall ${{ github.ref_name }}" | |
| body: "Automated build for tag ${{ github.ref_name }}" | |
| draft: false | |
| prerelease: false | |
| files: | | |
| output_build/output/*.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |