Skip to content

Commit

Permalink
aur workflow KSXGitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
gustawdaniel committed Mar 19, 2023
1 parent 70e4cfc commit da90190
Showing 1 changed file with 38 additions and 27 deletions.
65 changes: 38 additions & 27 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,30 @@ jobs:
run: |
pacman -Syu --noconfirm base-devel wget bc git openssh
- run: mkdir -p /github/home/.ssh
- run: ls -la /github/home/.ssh
- run: |
cat <<EOT >> /github/home/.ssh/config
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
EOT
- run: sudo chmod 400 /github/home/.ssh/config
- run: echo "${{ secrets.ID_ED25519 }}" > /github/home/.ssh/id_ed25519
- run: echo "${{ secrets.ID_ED25519_PUB }}" > /github/home/.ssh/id_ed25519.pub
- run: chmod 600 /github/home/.ssh/id_ed25519
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Daniel Gustaw"
- run: git init
- run: ls -la /github/home/.ssh
- run: whoami
- run: ls -la /
- run: ls -la /__w
- run: git config --global --add safe.directory /__w/gpt-cli/gpt-cli
- run: git remote add aur ssh://[email protected]/gpt-cli.git
# - run: git config --unset-all http.https://github.com/.extraheader
- run: GIT_SSH_COMMAND="ssh -i /github/home/.ssh/id_ed25519" git fetch aur master
- run: la -la
# - run: mkdir -p /github/home/.ssh
# - run: ls -la /github/home/.ssh
# - run: |
# cat <<EOT >> /github/home/.ssh/config
# Host *
# StrictHostKeyChecking no
# UserKnownHostsFile=/dev/null
# EOT
# - run: sudo chmod 400 /github/home/.ssh/config
# - run: echo "${{ secrets.ID_ED25519 }}" > /github/home/.ssh/id_ed25519
# - run: echo "${{ secrets.ID_ED25519_PUB }}" > /github/home/.ssh/id_ed25519.pub
# - run: chmod 600 /github/home/.ssh/id_ed25519
# - run: git config --global user.email "[email protected]"
# - run: git config --global user.name "Daniel Gustaw"
# - run: git init
# - run: ls -la /github/home/.ssh
# - run: whoami
# - run: ls -la /
# - run: ls -la /__w
# - run: git config --global --add safe.directory /__w/gpt-cli/gpt-cli
# - run: git remote add aur ssh://[email protected]/gpt-cli.git
## - run: git config --unset-all http.https://github.com/.extraheader
# - run: GIT_SSH_COMMAND="ssh -i /github/home/.ssh/id_ed25519" git fetch aur master
# - run: la -la

- name: Setup environment
run: |
Expand Down Expand Up @@ -88,6 +88,17 @@ jobs:
cat PKGBUILD
cat .SRCINFO
- run: git add PKGBUILD .SRCINFO
- run: git commit -m "Release ${{ env.PKGVER }}-${{ env.PKGREL }}"
- run: GIT_SSH_COMMAND="ssh -i /github/home/.ssh/id_ed25519" git push aur HEAD:master
# - run: git add PKGBUILD .SRCINFO
# - run: git commit -m "Release ${{ env.PKGVER }}-${{ env.PKGREL }}"
# - run: GIT_SSH_COMMAND="ssh -i /github/home/.ssh/id_ed25519" git push aur HEAD:master

- name: Publish AUR package
uses: KSXGitHub/[email protected]
with:
pkgname: gpt-cli
pkgbuild: ./PKGBUILD
commit_username: gustawdaniel
commit_email: [email protected]
ssh_private_key: ${{ secrets.ID_ED25519 }}
commit_message: Release ${{ env.PKGVER }}-${{ env.PKGREL }}
ssh_keyscan_types: ed25519

0 comments on commit da90190

Please sign in to comment.