|
| 1 | +name: Package for the AUR |
| 2 | + |
| 3 | +on: |
| 4 | + release: |
| 5 | + types: [published] |
| 6 | + |
| 7 | + # Allows you to run this workflow manually from the Actions tab |
| 8 | + workflow_dispatch: |
| 9 | +jobs: |
| 10 | + aur-publish: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Check out sources |
| 14 | + uses: actions/checkout@v3 |
| 15 | + with: |
| 16 | + fetch-depth: 0 |
| 17 | + # Checks out the latest tag |
| 18 | + - run: | |
| 19 | + git stash save "Action stashing changes" |
| 20 | + latestTag=$(git describe --abbrev=0 --tags) |
| 21 | + git checkout $latestTag |
| 22 | +
|
| 23 | + - name: Publish AUR Stable package |
| 24 | + uses: ulises-jeremias/github-actions-aur-publish@v1 |
| 25 | + with: |
| 26 | + pkgname: swayfx |
| 27 | + pkgbuild: ./build-scripts/aur/PKGBUILD |
| 28 | + assets: | |
| 29 | + ./build-scripts/aur/50-systemd-user.conf |
| 30 | + ./build-scripts/aur/sway.install |
| 31 | + commit_username: ${{ secrets.AUR_USERNAME }} |
| 32 | + commit_email: ${{ secrets.AUR_EMAIL }} |
| 33 | + ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} |
| 34 | + commit_message: Update AUR package |
| 35 | + ssh_keyscan_types: rsa,dsa,ecdsa,ed25519 |
| 36 | + update_pkgver: false |
| 37 | + |
| 38 | + # Checks out the the Master branch |
| 39 | + - run: | |
| 40 | + git checkout master |
| 41 | + - name: Publish AUR -git package |
| 42 | + uses: ulises-jeremias/github-actions-aur-publish@v1 |
| 43 | + with: |
| 44 | + pkgname: swayfx-git |
| 45 | + pkgbuild: ./build-scripts/aur-git/PKGBUILD |
| 46 | + assets: | |
| 47 | + ./build-scripts/aur-git/50-systemd-user.conf |
| 48 | + ./build-scripts/aur-git/sway.install |
| 49 | + commit_username: ${{ secrets.AUR_USERNAME }} |
| 50 | + commit_email: ${{ secrets.AUR_EMAIL }} |
| 51 | + ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} |
| 52 | + commit_message: Update AUR package |
| 53 | + ssh_keyscan_types: rsa,dsa,ecdsa,ed25519 |
| 54 | + update_pkgver: false |
0 commit comments