Skip to content

Add 'release-tag/' from commit '8e8edbf03b8e6d53e3e7276450d71d237d0c4… #86

Add 'release-tag/' from commit '8e8edbf03b8e6d53e3e7276450d71d237d0c4…

Add 'release-tag/' from commit '8e8edbf03b8e6d53e3e7276450d71d237d0c4… #86

Workflow file for this run

name: Deploy to AUR
on:
push:
branches:
- master
jobs:
push-to-remote:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Add known hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts
- name: Push to remote repository
run: |
for dir in **/; do
[[ "$dir" =~ ^[a-zA-Z0-9/_-]+$ ]] || { echo "Invalid input"; exit 1; }
PACKAGE="${dir///}"
git subtree push "--prefix=$PACKAGE" "ssh://[email protected]/$PACKAGE.git" master
done