build: release v0.1.12 #2
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: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install pipenv | |
| run: pip install pipenv | |
| - name: Set up project environment | |
| run: make setup | |
| - name: Build package | |
| run: make build | |
| - name: Build documentation | |
| run: make docs | |
| - name: Package documentation | |
| run: tar -czf docs.tar.gz -C docs . | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| dist/* | |
| docs.tar.gz | |
| - name: Notify cloud-infra repo | |
| env: | |
| GH_TOKEN: ${{ secrets.DOCS_DISPATCH_TOKEN }} | |
| run: | | |
| gh api repos/gormaniac/cloud-infra/dispatches \ | |
| -f event_type=doc-release \ | |
| -f 'client_payload[tag]=${{ github.ref_name }}' \ | |
| -f 'client_payload[repository]=${{ github.repository }}' \ | |
| -f 'client_payload[github_sha]=${{ github.sha }}' |