Skip to content

Commit ce80165

Browse files
committed
update copr on auto publish action
1 parent 1c1bd42 commit ce80165

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/package-publish.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Upload to PYPI, AUR, COPR
1+
name: Publish to PyPi, AUR, COPR
22

33
on:
44
workflow_dispatch:
@@ -57,7 +57,6 @@ jobs:
5757
deploy_copr:
5858
runs-on: ubuntu-latest
5959
environment: prod
60-
needs: deploy_pypi
6160

6261
steps:
6362
- uses: actions/checkout@v3
@@ -66,9 +65,13 @@ jobs:
6665
- name: Build spec file
6766
run: sed "s/REPLACE_VERSION/$(cat pyproject.toml | grep -E 'version = "[0-9\.]+"' -o | grep -E "[0-9\.]+" -o)/" hhd.spec > ./pkg/hhd.spec
6867
- name: Publish to COPR repo
69-
uses: ad-m/github-push-action@master
70-
with:
71-
github_token: ${{ secrets.COPR_TOKEN }}
72-
repository: hhd-dev/hhd-copr
73-
directory: ./pkg
74-
ssh: true
68+
uses: s0/git-publish-subdir-action@develop
69+
env:
70+
REPO: [email protected]:hhd-dev/hhd-copr.git
71+
BRANCH: main
72+
FOLDER: pkg
73+
SSH_PRIVATE_KEY: ${{ secrets.COPR_SSH_PRIVATE_KEY }}
74+
MESSAGE: update to '${{ github.event.release.name }}'
75+
SKIP_EMPTY_COMMITS: true
76+
# Do not clear any files
77+
CLEAR_GLOBS_FILE: .github/workflows/copr_glob.txt

0 commit comments

Comments
 (0)