Publish #76
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: Publish | |
| on: | |
| workflow_run: | |
| workflows: ["lint"] | |
| types: | |
| - completed | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| environment: prod | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: gh cli auth | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token | |
| - uses: actions/setup-dotnet@v4 | |
| - name: Install GitVersion | |
| run: git fetch --unshallow && dotnet tool install --global GitVersion.Tool | |
| - name: Get semver | |
| id: semver | |
| run: echo "SEMVER=$(dotnet gitversion | jq -r '.FullSemVer')" >> $GITHUB_ENV | |
| - name: Create release | |
| run: gh release create v${{ env.SEMVER }} -t v${{ env.SEMVER }} |