fix: update build constraint to include without_vips #12
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 Static Binary | |
| on: | |
| push: | |
| branches: [vips] | |
| # tags: ["v*"] | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for tags | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build static binary with alpine | |
| run: | | |
| docker buildx build \ | |
| --platform linux/amd64 \ | |
| --target exporter \ | |
| --output type=local,dest=./output \ | |
| -f scripts/Dockerfile.vips \ | |
| . | |
| - name: Upload static binary as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: manyacg | |
| path: output/manyacg | |
| retention-days: 30 | |
| - name: Create GitHub Release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: output/manyacg | |
| fail_on_unmatched_files: true | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |