Aggiornamento per forgejo.

This commit is contained in:
Emiliano Vavassori 2025-06-06 00:25:45 +02:00
parent 542b22a3b9
commit 075bcacad5

View file

@ -0,0 +1,39 @@
name: Build and publish
on: [create, pull_request]
jobs:
pkgbuild:
runs-on: archlinux
steps:
- name: Refreshing packages
run: /paruw.sh "paru -Syy"
- name: Installing packaged keyring
run: /paruw.sh "paru -S --noconfirm archlinux-keyring"
- name: Create master keyring
run: pacman-key --init
- name: Populate master keyring
run: pacman-key --populate archlinux
- name: Hard refresh keys
run: pacman-key --refresh-keys
- name: Installing rankmirrors
run: /paruw.sh "paru -S --noconfirm pacman-contrib pacman-mirrorlist"
- name: Renew mirrors choice
run: rankmirrors -n 5 /etc/pacman.d/mirrorlist
- name: Ri-refreshing packages
run: /paruw.sh "paru -Syy"
- name: Checkout
uses: actions/checkout@v4
- name: Fix permissions
run: /fixperms.sh
- name: Compile package
run: /paruw.sh "paru -B --noconfirm ${{ gitea.workspace }} --localrepo"
- name: Dislocate artifacts
run:
- mkdir -p dist/release
- find -iname \*.pkg.tar.zst -exec mv {} dist/release \;
- name: Upload Package Archive
uses: actions/forgejo-release@v2.6.0
with:
direction: upload
release-dir: dist/release
token: ${{ secrets.APITOKEN_RELEASE }}