39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
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 }}
|