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 uses: edlanglois/pkgbuild-action@v1 - name: Print Package Files run: | echo "Successfully created the following package archive" echo "Package: ${{ steps.makepkg.outputs.pkgfile0 }}" - 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: ${{ steps.makepkg.outputs.pkgfile0 }} api_key: ${{ secrets.APITOKEN_RELEASE }}