Skip to content

Commit 7406c7e

Browse files
committed
👷 Add CI/CD for AUR, NUR
1 parent 4372a0a commit 7406c7e

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -84,25 +84,24 @@ jobs:
8484
files: |
8585
dist/*
8686
87-
# deploy-aur:
88-
# needs: build
89-
# runs-on: ubuntu-latest
90-
# if: startsWith(github.ref, 'refs/tags/')
91-
# steps:
92-
# - uses: Freed-Wu/[email protected]
93-
# with:
94-
# package_name: python-repl-python-wakatime
95-
# ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
87+
deploy-aur:
88+
needs: build
89+
runs-on: ubuntu-latest
90+
if: startsWith(github.ref, 'refs/tags/')
91+
steps:
92+
- uses: Freed-Wu/[email protected]
93+
with:
94+
package_name: python-repl-python-wakatime
95+
ssh_private_key: ${{secrets.AUR_SSH_PRIVATE_KEY}}
9696

97-
# yamllint disable rule:line-length
98-
# deploy-nur:
99-
# needs: build
100-
# runs-on: ubuntu-latest
101-
# if: startsWith(github.ref, 'refs/tags/')
102-
# steps:
103-
# - name: Trigger Workflow
104-
# run: >
105-
# curl -X POST -d '{"ref":"main"}'
106-
# -H "Accept: application/vnd.github.v3+json"
107-
# -H "Authorization: Bearer ${{ secrets.GH_TOKEN }}"
108-
# https://api.github.com/repos/Freed-Wu/nur-packages/actions/workflows/version.yml/dispatches
97+
deploy-nur:
98+
needs: build
99+
runs-on: ubuntu-latest
100+
if: startsWith(github.ref, 'refs/tags/')
101+
steps:
102+
- name: Trigger Workflow
103+
run: >
104+
curl -X POST -d '{"ref":"main"}'
105+
-H "Accept: application/vnd.github.v3+json"
106+
-H "Authorization: Bearer ${{secrets.GH_TOKEN}}"
107+
https://api.github.com/repos/Freed-Wu/nur-packages/actions/workflows/version.yml/dispatches

0 commit comments

Comments
 (0)