Skip to content

publish

publish #27

Workflow file for this run

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