diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index b6e9c62..d1c1bd2 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - fix/aur permissions: # required for npm provenance @@ -162,6 +163,6 @@ jobs: - name: Install Makepkg run: sudo apt-get update && sudo apt-get install -y makepkg pacman - name: Publish to AUR - run: pnpm publish:aur --version ${{ needs.version-or-publish.outputs.version }} + run: pnpm publish:aur --version ${{ needs.version-or-publish.outputs.version }} --ci env: AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} diff --git a/.github/workflows/release-aur.yml b/.github/workflows/release-aur.yml new file mode 100644 index 0000000..2c48d89 --- /dev/null +++ b/.github/workflows/release-aur.yml @@ -0,0 +1,39 @@ +name: Release AUR + +on: + push: + branches: + - fix/aur + +permissions: + # required for npm provenance + id-token: write + # required to create the GitHub Release + contents: write + # required for creating the Version Packages Release + pull-requests: write + +jobs: + test-release-aur: + name: Publish to AUR + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + run_install: false + - name: Setup Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Install Makepkg + run: sudo apt-get update && sudo apt-get install -y makepkg pacman + - name: Publish to AUR + run: pnpm publish:aur --version 0.1.1-rc.1 --ci + env: + AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}