fix: workflow #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Marten package | |
| on: | |
| push: | |
| paths: | |
| - 'marten/**' | |
| branches: | |
| - 'main' | |
| pull_request: | |
| paths: | |
| - 'marten/**' | |
| workflow_dispatch: ~ | |
| jobs: | |
| validation: | |
| runs-on: ubuntu-latest | |
| name: Integrity checks | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate PKGBUILD | |
| id: validate-pkgbuild | |
| uses: 2m/arch-pkgbuild-builder@v1.16 | |
| with: | |
| target: 'pkgbuild' | |
| pkgname: 'marten' | |
| - name: Validate SRCINFO | |
| id: validate-srcinfo | |
| uses: 2m/arch-pkgbuild-builder@v1.16 | |
| with: | |
| target: 'srcinfo' | |
| pkgname: 'marten' | |
| - name: Validate binary | |
| id: validate-binary | |
| uses: 2m/arch-pkgbuild-builder@v1.16 | |
| with: | |
| target: 'run' | |
| pkgname: 'marten' | |
| command: 'marten -v' | |
| publish: | |
| needs: validation | |
| runs-on: ubuntu-latest | |
| name: AUR release | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Publish AUR package | |
| uses: KSXGitHub/github-actions-deploy-aur@v4.1.1 | |
| with: | |
| pkgname: marten | |
| pkgbuild: ./marten/PKGBUILD | |
| assets: ./marten/.SRCINFO | |
| commit_username: ${{ secrets.AUR_USERNAME }} | |
| commit_email: ${{ secrets.AUR_EMAIL }} | |
| ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | |
| commit_message: Update AUR package | |
| ssh_keyscan_types: rsa,ecdsa,ed25519 |