Skip to content

v3.1.2: Focus Hotfix for Gestures #18

v3.1.2: Focus Hotfix for Gestures

v3.1.2: Focus Hotfix for Gestures #18

Workflow file for this run

name: Publish to COPR
on:
workflow_dispatch:
release:
types: [published]
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-out/
- name: Build spec file
run: >-
sed "s/REPLACE_VERSION/$(cat package.json | grep -E '"version": "[0-9\.]+"' -o | grep -E "[0-9\.]+" -o)/" ./pkg/hhd-ui.spec > ./pkg-out/hhd-ui.spec
- name: Publish to COPR repo
uses: s0/git-publish-subdir-action@develop
env:
REPO: git@github.com:hhd-dev/hhd-ui-copr.git
BRANCH: main
FOLDER: ./pkg-out
SSH_PRIVATE_KEY: ${{ secrets.COPR_SSH_PRIVATE_KEY }}
MESSAGE: update to '${{ github.event.release.name }}'
SKIP_EMPTY_COMMITS: true
# Do not clear any files
CLEAR_GLOBS_FILE: .github/workflows/copr_glob.txt