name: Build and publish on: [create, pull_request] jobs: pkgbuild: runs-on: archlinux steps: - name: Refreshing packages run: /paruw.sh "paru -Syy" - name: Installing packaged keyring run: /paruw.sh "paru -S --noconfirm archlinux-keyring" - name: Create master keyring run: pacman-key --init - name: Populate master keyring run: pacman-key --populate archlinux - name: Hard refresh keys run: pacman-key --refresh-keys - name: Installing rankmirrors run: /paruw.sh "paru -S --noconfirm pacman-contrib pacman-mirrorlist" - name: Renew mirrors choice run: rankmirrors -n 5 /etc/pacman.d/mirrorlist - name: Ri-refreshing packages run: /paruw.sh "paru -Syy" - name: Checkout uses: actions/checkout@v2 - name: Fix permissions run: /fixperms.sh - name: Compile package run: /paruw.sh "paru -Bi --noconfirm ${{ 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