2024-03-02 23:10:46 +01:00
|
|
|
name: Build and publish
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
pkgbuild:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install makepkg
|
|
|
|
id: makepkg
|
2024-03-02 23:24:10 +01:00
|
|
|
uses: edlanglois/pkgbuild-action@v1
|
2024-03-02 23:10:46 +01:00
|
|
|
- name: Print Package Files
|
|
|
|
run: |
|
|
|
|
echo "Successfully created the following package archive"
|
|
|
|
echo "Package: ${{ steps.makepkg.outputs.pkgfile0 }}"
|
2024-03-02 23:53:17 +01:00
|
|
|
- name: Setup go for publishing
|
|
|
|
uses: https://gitea.com/actions/setup-go@v4
|
|
|
|
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-02 23:24:10 +01:00
|
|
|
files: ${{ steps.makepkg.outputs.pkgfile0 }}
|
2024-03-02 23:53:17 +01:00
|
|
|
api_key: ${{ secrets.APITOKEN_RELEASE }}
|