-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 993 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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