2024-03-03 23:51:47 +01:00
|
|
|
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
|
2025-02-08 21:20:39 +01:00
|
|
|
- name: Refresh packages
|
|
|
|
run: /paruw.sh "paru -Syy"
|
2025-02-08 21:29:29 +01:00
|
|
|
- name: Refresh keys
|
|
|
|
run: /paruw.sh "paru -S --noconfirm archlinux-keyring"
|
2025-02-08 21:32:23 +01:00
|
|
|
- name: Hard refresh keys
|
|
|
|
run: pacman-key --refresh-keys
|
2024-03-03 23:51:47 +01:00
|
|
|
- name: Compile package
|
2025-02-08 21:24:53 +01:00
|
|
|
run: /paruw.sh "paru -Bi --noconfirm ${{ gitea.workspace }}"
|
2024-03-03 23:51:47 +01:00
|
|
|
- name: Setup go for publishing
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: '>=1.20.1'
|
|
|
|
- name: Upload Package Archive
|
|
|
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
|
|
|
with:
|
|
|
|
files: "*.pkg.tar.zst"
|
|
|
|
api_key: ${{ secrets.APITOKEN_RELEASE }}
|
|
|
|
md5sum: true
|