feat(compliance): ISO/IEC 42001:2023 framework — v1.3.21 #65
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*"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install -e ".[test]" | |
| - name: Generate test signing key | |
| run: python3 -m trust_layer.crypto | |
| - name: Run tests | |
| run: pytest tests/ -v | |
| release: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get previous tag | |
| id: prev_tag | |
| run: | | |
| PREV=$(git tag --sort=-creatordate | grep -v "^${{ github.ref_name }}$" | head -1) | |
| echo "tag=${PREV:-$(git rev-list --max-parents=0 HEAD)}" >> "$GITHUB_OUTPUT" | |
| - name: Generate changelog | |
| id: changelog | |
| run: | | |
| { | |
| echo "changelog<<EOF" | |
| git log "${{ steps.prev_tag.outputs.tag }}..HEAD" --pretty=format:"- %s (%h)" --no-merges | |
| echo "" | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body: | | |
| ## Changes | |
| ${{ steps.changelog.outputs.changelog }} | |
| --- | |
| See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for full history. | |
| generate_release_notes: false |