Skip to content

Publish to COPR

Publish to COPR #2

Workflow file for this run

name: Push 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)/" hhd.spec > ./pkg/hhd.spec
- name: Publish to COPR repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.COPR_TOKEN }}
repository: hhd-dev/hhd-copr
directory: ./pkg
ssh: true