publish #27
This file contains 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: Publish AUR | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [publish] | |
jobs: | |
publish: | |
name: Publish AUR | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out code base | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build package | |
run: make build | |
- name: Set up SSH agent | |
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 #v0.7.0 | |
with: | |
ssh-private-key: ${{ secrets.AUR_PRIVATE_KEY }} | |
- name: Publish package | |
if: ${{ github.event.client_payload.from == 'wabarc/wayback' && github.event.client_payload.channel == 'stable' }} | |
run: | | |
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts | |
git remote add aur ssh://[email protected]/wayback.git | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
make publish |