Aggiornate azioni per Forgejo.

This commit is contained in:
Emiliano Vavassori 2025-06-05 23:28:04 +02:00
parent 49a18dd474
commit b669bebb47

View file

@ -0,0 +1,25 @@
name: Build and publish
on: [create, pull_request]
jobs:
pkgbuild:
runs-on: archlinux
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fix permissions
run: /fixperms.sh
- name: Compile package
run: /paruw.sh "paru -Bi ${{ gitea.workspace }}"
- name: Setup go for publishing
uses: actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Upload Package Archive
uses: actions/forgejo-release@v2.6.0
with:
direction: upload
release-dir: ./
files: "*.pkg.tar.zst"
token: ${{ secrets.APITOKEN_RELEASE }}
md5sum: true