Merge Release Workflow #9
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
| on: | |
| push: | |
| tags: | |
| - '*' | |
| branches: | |
| - main | |
| name: Build Project | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU dependency | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build project | |
| run: ./build.sh | |
| - name: 'Upload Artifact' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-3.13-alpine3.21-armv7-musl | |
| path: 'python-3.13-alpine3.21-armv7-musl.tar.gz' | |
| # These files are already compressed | |
| compression-level: 0 | |
| create-release: | |
| name: Create Release | |
| runs-on: ubuntu-24.04 | |
| if: github.ref_type == 'tag' | |
| steps: | |
| - name: Download Artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: python-3.13-alpine3.21-armv7-musl | |
| # TODO: Use a glob if we need to upload more files | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| python-3.13-alpine3.21-armv7-musl.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |