Aggiornamento per forgejo.
This commit is contained in:
parent
542b22a3b9
commit
075bcacad5
1 changed files with 10 additions and 10 deletions
39
.forgejo/workflows/build-publish.yml
Normal file
39
.forgejo/workflows/build-publish.yml
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue