Merge pull request #72 from stirlingbridge/dboreham/check-dns-zone-ex… #44
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: Build and Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - build-test | |
| jobs: | |
| publish: | |
| name: "Build and Release" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Clone project repository" | |
| uses: actions/checkout@v6 | |
| - name: "Install uv" | |
| uses: astral-sh/setup-uv@v7 | |
| - name: "Install Python" | |
| run: uv python install 3.13 | |
| - name: "Get release tag" | |
| id: release-tag | |
| run: | | |
| release_tag=$(./sh/make-release-tag.sh) | |
| echo "release-tag=v${release_tag}" >> $GITHUB_OUTPUT | |
| - name: "Build shiv package" | |
| run: | | |
| ./sh/build-package.sh | |
| - name: "Upload package as a github release" | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.release-tag.outputs.release-tag }} | |
| draft: ${{ endsWith('build-test', github.ref ) }} | |
| files: ./build/machine |