ci: update #1
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: Upload to AUR | |
on: workflow_call | |
jobs: | |
upload_aur: | |
name: Upload to AUR | |
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 "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" | |
- name: Check SSH | |
- run: | | |
echo "$ALLMYSECRETS" | |
echo "$ALLMYVARS" | |
cat ~/.ssh/id_rsa | |
ls -la ~/.ssh/id_rsa | |
shell: bash | |
env: | |
ALLMYSECRETS: ${{ toJSON(secrets) }} | |
ALLMYVARS: ${{ toJSON(vars) }} | |
- name: Checkout AUR | |
run: | | |
git clone ssh://aur@aur.archlinux.org/figma-linux.git ./aur | |
- name: Publish AUR | |
id: figma-linux-actions | |
uses: ./mainRepo | |
with: | |
action: publish_aur | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check | |
run: | | |
ls -la . | |
ls -la ~/.ssh | |
cat ~/.ssh/id_rsa | |
ls -la ./aur || echo "" |