-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.04 KB
/
Copy pathreuse_aur_git.yml
File metadata and controls
43 lines (38 loc) · 1.04 KB
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
36
37
38
39
40
41
42
43
name: AUR GIT
on: workflow_call
jobs:
upload_aur:
environment: Main
name: AUR GIT
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
path: ./mainRepo
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
path: ./
- name: Import SSH key
id: key
run: |
echo "Importing SSH ley..."
mkdir ~/.ssh
# echo "${secrets.SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
echo "$SSH_KEY" | base64 -d > ~/.ssh/id_rsa
echo "Updating ~/.ssh/known_hosts..."
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
ls -la ~/.ssh
cat ~/.ssh/id_rsa
echo "Step completed"
env:
SSH_KEY: ${{ secrets.ID_RSA }}
- name: Publish AUR
id: figma-linux-actions
uses: ./mainRepo
with:
action: publish_aur_git
token: ${{ secrets.GITHUB_TOKEN }}