Merge pull request #16 from sarnold/misc-improvements #3
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: Release | |
| on: | |
| workflow_dispatch: | |
| push: | |
| # release on tag push | |
| tags: | |
| - '*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build_wheels: | |
| name: Build wheels | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/wheels.yml | |
| build_docs: | |
| name: Build docs | |
| uses: ./.github/workflows/sphinx.yml | |
| create_release: | |
| name: Create Release | |
| needs: [build_wheels, build_docs] | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Get version | |
| id: get_version | |
| run: | | |
| echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | |
| echo ${{ env.VERSION }} | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| # download all artifacts to project dir | |
| - uses: actions/download-artifact@v5 | |
| - name: check artifacts | |
| run: | | |
| ls -l packages/ | |
| - name: Generate changes file | |
| uses: sarnold/gitchangelog-action@915234f151ceffb7a8c4f76de77e4ae321087b8f # v1.1.1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN}} | |
| - name: Create release | |
| id: create_release | |
| uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ env.VERSION }} | |
| name: Release v${{ env.VERSION }} | |
| body_path: CHANGES.md | |
| draft: false | |
| prerelease: false | |
| files: | | |
| packages/*.whl | |
| packages/*.tar.gz |