Skip to content

Bump work from 1.0.10 to 1.0.11 (#42) #98

Bump work from 1.0.10 to 1.0.11 (#42)

Bump work from 1.0.10 to 1.0.11 (#42) #98

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