Improve packaging routines and checks (#32) #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: Std CD | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| concurrency: | |
| group: std-cd-${{ github.workflow }}-${{ github.ref_type }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| package: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: sudo snap install jsonschema | |
| - uses: actions/checkout@v4 | |
| - run: make lint | |
| - run: make test | |
| - run: make dist | |
| - run: gh config set prompt disabled | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - name: Perform Tag Release | |
| run: | | |
| gh release create ${{ github.ref_name }} --draft=false --title ${{ github.ref_name }} --target "$GITHUB_SHA" --generate-notes | |
| gh release upload --clobber ${{ github.ref_name }} dist/*.zip dist/*.tar.gz | |
| if: github.ref_type == 'tag' | |
| env: | |
| GH_TOKEN: ${{ github.token }} |