Skip to content

Commit 0a5c1f4

Browse files
Fix deploy workflow
1 parent 5b3bddd commit 0a5c1f4

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,8 @@ jobs:
7575
with:
7676
files: |
7777
_output/*.rpm
78+
79+
deploy:
80+
needs: ["build"]
81+
if: startsWith(github.ref, 'refs/tags/v')
82+
uses: ./.github/workflows/deploy.yaml

.github/workflows/deploy.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ concurrency:
77
on:
88
release:
99
types: [released]
10+
workflow_call:
1011

1112
jobs:
1213
build-repo:
@@ -18,15 +19,15 @@ jobs:
1819
- name: "Download release"
1920
uses: robinraju/release-downloader@v1.8
2021
with:
21-
tag: ${{ github.ref_name }}
22+
latest: true
2223
fileName: "*"
2324
out-file-path: "_output"
2425

2526
- name: "Build DNF Repo"
2627
run: |
2728
docker run -t \
2829
-v $PWD:/repo \
29-
ghcr.io/t2linux/fedora-kernel-build:latest \
30+
ghcr.io/t2linux/fedora-dev:latest \
3031
/repo/generate-dnf-repo.sh
3132
3233
- name: "Upload DNF Repo"
@@ -52,3 +53,4 @@ jobs:
5253
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
5354
with:
5455
publish-dir: dnf-repo
56+
production-deploy: ${{ startsWith(github.ref, 'refs/tags/v') }}

sign-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
cd /repo/_output || exit 2
33

44
echo "$RPM_SIGNING_PRIVATE_KEY_B64" | base64 -d | gpg --import
5-
rpm --addsign ./*.rpm
65
echo -e "%_signature gpg\n%_gpg_name T2Linux Fedora" > ~/.rpmmacros
6+
rpm --addsign ./*.rpm

0 commit comments

Comments
 (0)