Add 'release-tag/' from commit '8e8edbf03b8e6d53e3e7276450d71d237d0c4… #86
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: 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 |