apng2gif/.forgejo/workflows/build.yaml
jackzmc fe815bbde8
All checks were successful
Build / build (ubuntu-full) (push) Successful in 15s
Build / release (push) Successful in 1m28s
ci: Attempt release workflow
2026-03-27 14:06:36 -05:00

46 lines
No EOL
1.1 KiB
YAML

name: Build
on:
push:
branches:
- main
tags: ["v*"]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-full]
runs-on: ${{ matrix.os }}
steps:
- uses: https://github.com/actions/checkout@v4
- run: make
- name: upload artifacts
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
with:
name: binary
path: apng2gif
retention-days: 7
release:
needs: build
runs-on: ubuntu-full
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- name: Download artifacts
uses: https://data.forgejo.org/forgejo/download-artifact@v4
with:
name: binary
path: dist/
- name: Create GitHub Release
uses: actions/forgejo-release@v2.11.1
with:
url: "https://git.jackz.me"
direction: upload
release-dir: dist/
tag: "${{ github.ref_name }}"
sha: "${{ github.sha }}"
token: "${{ secrets.FORGEJO_TOKEN }}"