Skip to content

Commit

Permalink
add copr publish file
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jul 6, 2024
1 parent c0097f2 commit 31eb7ee
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-copr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to COPR

on:
workflow_dispatch:

permissions:
contents: read

jobs:
deploy_copr:
runs-on: ubuntu-latest
environment: prod

steps:
- uses: actions/checkout@v3
- name: Create spec file dir
run: mkdir -p ./pkg/
- name: Build spec file
run: sed "s/REPLACE_VERSION/$(cat pyproject.toml | grep -E 'version = "[0-9\.]+"' -o | grep -E "[0-9\.]+" -o)/" adjustor.spec > ./pkg/adjustor.spec
- name: Publish to COPR repo
uses: s0/git-publish-subdir-action@develop
env:
REPO: [email protected]:hhd-dev/adjustor-copr.git
BRANCH: main
FOLDER: pkg
SSH_PRIVATE_KEY: ${{ secrets.COPR_SSH_PRIVATE_KEY }}
MESSAGE: Manual update
SKIP_EMPTY_COMMITS: true
# Do not clear any files
CLEAR_GLOBS_FILE: .github/workflows/copr_glob.txt
ssh_keyscan_types: rsa,ecdsa,ed25519

0 comments on commit 31eb7ee

Please sign in to comment.