ferrumgate-bin/.gitea/workflows/build-publish.yml

24 lines
613 B
YAML
Raw Normal View History

2024-03-02 23:10:46 +01:00
name: Build and publish
2024-03-03 23:06:35 +01:00
on: [create, pull_request]
2024-03-02 23:10:46 +01:00
jobs:
pkgbuild:
2024-03-03 22:47:15 +01:00
runs-on: archlinux
2024-03-02 23:10:46 +01:00
steps:
- name: Checkout
uses: actions/checkout@v2
2024-03-03 22:47:15 +01:00
- name: Fix permissions
run: /fixperms.sh
- name: Compile package
2024-03-03 22:51:22 +01:00
run: /paruw.sh "paru -Bi ${{ gitea.workspace }}"
2024-03-02 23:53:17 +01:00
- name: Setup go for publishing
2024-03-02 23:54:15 +01:00
uses: actions/setup-go@v4
2024-03-02 23:53:17 +01:00
with:
go-version: '>=1.20.1'
2024-03-02 23:10:46 +01:00
- name: Upload Package Archive
2024-03-02 23:43:02 +01:00
uses: https://gitea.com/actions/gitea-release-action@v1
2024-03-02 23:10:46 +01:00
with:
2024-03-03 22:47:15 +01:00
files: "*.pkg.tar.zst"
2024-03-02 23:53:17 +01:00
api_key: ${{ secrets.APITOKEN_RELEASE }}
2024-03-03 22:55:44 +01:00
md5sum: true