46 lines
No EOL
1.1 KiB
YAML
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 }}" |