it-cie-tools-bin/.gitea/workflows/build-publish.yml

40 lines
1.2 KiB
YAML
Raw Normal View History

2024-03-03 23:51:47 +01:00
name: Build and publish
on: [create, pull_request]
jobs:
pkgbuild:
runs-on: archlinux
steps:
2025-02-08 22:01:34 +01:00
- name: Refreshing packages
run: /paruw.sh "paru -Syy"
2025-02-08 21:58:45 +01:00
- name: Installing packaged keyring
2025-02-08 22:01:34 +01:00
run: /paruw.sh "paru -S --noconfirm archlinux-keyring"
2025-02-08 21:58:45 +01:00
- name: Create master keyring
2025-02-08 22:02:53 +01:00
run: pacman-key --init
2025-02-08 21:58:45 +01:00
- name: Populate master keyring
2025-02-08 22:02:53 +01:00
run: pacman-key --populate archlinux
2025-02-08 21:32:23 +01:00
- name: Hard refresh keys
2025-02-08 22:02:53 +01:00
run: pacman-key --refresh-keys
2025-02-08 21:58:45 +01:00
- name: Installing rankmirrors
run: /paruw.sh "paru -S --noconfirm pacman-contrib pacman-mirrorlist"
- name: Renew mirrors choice
run: rankmirror -n 5 /etc/pacman.d/mirrorlist
- name: Ri-refreshing packages
run: /paruw.sh "paru -Syy"
2025-02-08 22:01:34 +01:00
- name: Checkout
uses: actions/checkout@v2
- name: Fix permissions
run: /fixperms.sh
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