Skip to content

fix: update build constraint to include without_vips #12

fix: update build constraint to include without_vips

fix: update build constraint to include without_vips #12

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 }}