Cambiate azioni per deploy.

This commit is contained in:
Emiliano Vavassori 2024-03-03 22:47:15 +01:00
parent c23c30a8a0
commit 38085b8fef

View File

@ -2,17 +2,14 @@ name: Build and publish
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
pkgbuild: pkgbuild:
runs-on: ubuntu-latest runs-on: archlinux
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install makepkg - name: Fix permissions
id: makepkg run: /fixperms.sh
uses: edlanglois/pkgbuild-action@v1 - name: Compile package
- name: Print Package Files run: /paruw.sh "paru -Bi ."
run: |
echo "Successfully created the following package archive"
echo "Package: ${{ steps.makepkg.outputs.pkgfile0 }}"
- name: Setup go for publishing - name: Setup go for publishing
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
@ -20,5 +17,5 @@ jobs:
- name: Upload Package Archive - name: Upload Package Archive
uses: https://gitea.com/actions/gitea-release-action@v1 uses: https://gitea.com/actions/gitea-release-action@v1
with: with:
files: ${{ steps.makepkg.outputs.pkgfile0 }} files: "*.pkg.tar.zst"
api_key: ${{ secrets.APITOKEN_RELEASE }} api_key: ${{ secrets.APITOKEN_RELEASE }}