-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (29 loc) · 1.05 KB
/
publish-nobara.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Publish to Nobara
on:
workflow_dispatch:
permissions:
contents: read
jobs:
deploy_nobara:
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: Rename to Nobara ver
run: >-
sed "s/Name: adjustor/Name: hhd-adjustor/" adjustor.spec > ./pkg/adjustor.spec
- name: Publish to COPR repo
uses: s0/git-publish-subdir-action@develop
env:
REPO: [email protected]:hhd-dev/adjustor-nobara.git
BRANCH: main
FOLDER: pkg
SSH_PRIVATE_KEY: ${{ secrets.NOBARA_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