Aggiornamento per forgejo.
This commit is contained in:
parent
b2a653f05a
commit
c5c05dfc4d
2 changed files with 19 additions and 23 deletions
19
.forgejo/workflows/build-publish.yml
Normal file
19
.forgejo/workflows/build-publish.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: Build and publish
|
||||||
|
on: [create, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pkgbuild:
|
||||||
|
runs-on: archlinux
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Fix permissions
|
||||||
|
run: /fixperms.sh
|
||||||
|
- name: Compile package
|
||||||
|
run: /paruw.sh "paru -Bi ${{ gitea.workspace }}"
|
||||||
|
- name: Upload Package Archive
|
||||||
|
uses: actions/forgejo-release@v2.6.0
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
release-dir: .
|
||||||
|
token: ${{ secrets.APITOKEN_RELEASE }}
|
|
@ -1,23 +0,0 @@
|
||||||
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
|
|
||||||
- name: Compile package
|
|
||||||
run: /paruw.sh "paru -B ${{ gitea.workspace }}"
|
|
||||||
- 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
|
|
Loading…
Add table
Add a link
Reference in a new issue