chore(deps): bump actions/download-artifact in /.github/workflows (#398)
[figma-linux.git] / .github / workflows / reuse_aur_git.yml
bloba810a9b6bd75d42c6aaf7c4700a654b98e4d8c52
1 name: AUR GIT
3 on: workflow_call
5 jobs:
6   upload_aur:
7     environment: Main
8     name: AUR GIT
9     runs-on: ubuntu-latest
10     steps:
11       - uses: actions/download-artifact@v4.1.7
12         with:
13           path: ./
15       - name: Import SSH key
16         id: key
17         run: |
18           echo "Importing SSH ley..."
19           mkdir ~/.ssh
20           echo "$SSH_KEY" | base64 -d > ~/.ssh/id_rsa
21           echo "Updating ~/.ssh/known_hosts..."
22           ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
23           chmod 700 ~/.ssh
24           chmod 600 ~/.ssh/id_rsa
25           echo "Step completed"
26         env:
27           SSH_KEY: ${{ secrets.ID_RSA }}
29       - name: Set user name and email for git
30         run: |
31           git config --global user.name "${{ secrets.USER_NAME }}"
32           git config --global user.email "${{ secrets.EMAIL}}"
34       - name: Publish AUR
35         id: figma-linux-actions
36         uses: Figma-Linux/figma-linux-actions@main
37         with:
38           action: publish_aur_git
39           token: ${{ secrets.GITHUB_TOKEN }}