forked from archlinuxcn/archlinuxcn-keyring
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automatically push chaotic.gpg to chaotic-aur.github.io
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
name: Push to chaotic-aur.github.io | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- chaotic.gpg | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: main | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: chaotic-aur/chaotic-aur.github.io | ||
token: ${{ secrets.GH_PAT }} | ||
sparse-checkout: | | ||
chaotic.gpg | ||
sparse-checkout-cone-mode: false | ||
path: target | ||
- name: Commit and push changes | ||
run: | | ||
cp main/chaotic.gpg target/chaotic.gpg | ||
cd target | ||
git config --local user.email "actions@chaotic.cx" | ||
git config --local user.name "Chaotic Temeraire" | ||
git add chaotic.gpg | ||
git commit -m "Update chaotic.gpg" | ||
git push |
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