Update with v2 info #8
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: Create Release | |
| on: | |
| push: | |
| tags: | |
| - v[0-9]+.[0-9]+.[0-9]+ | |
| jobs: | |
| build_and_release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Create ZIP archive | |
| run: | | |
| cd dist | |
| zip -r ../open5e-api-${{ github.ref }}.zip . | |
| working-directory: ${{ github.workspace }} | |
| - name: Upload release asset | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: codebase | |
| - uses: actions/create-release@v1 | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: ${{ github.ref }} | |
| body_path: CHANGELOG.md # Optional: Path to a file containing release notes | |
| draft: true # Set to true for draft releases | |
| prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') }} # Set to true for pre-releases with specific tags | |
| assets: ${{ github.workspace }}/open5e-api-${{ github.ref }}.zip |