Skip to content

Commit

Permalink
Fix deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Oct 4, 2023
1 parent 5b3bddd commit 0a5c1f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,8 @@ jobs:
with:
files: |
_output/*.rpm
deploy:
needs: ["build"]
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/deploy.yaml
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ concurrency:
on:
release:
types: [released]
workflow_call:

jobs:
build-repo:
Expand All @@ -18,15 +19,15 @@ jobs:
- name: "Download release"
uses: robinraju/[email protected]
with:
tag: ${{ github.ref_name }}
latest: true
fileName: "*"
out-file-path: "_output"

- name: "Build DNF Repo"
run: |
docker run -t \
-v $PWD:/repo \
ghcr.io/t2linux/fedora-kernel-build:latest \
ghcr.io/t2linux/fedora-dev:latest \
/repo/generate-dnf-repo.sh
- name: "Upload DNF Repo"
Expand All @@ -52,3 +53,4 @@ jobs:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
publish-dir: dnf-repo
production-deploy: ${{ startsWith(github.ref, 'refs/tags/v') }}
2 changes: 1 addition & 1 deletion sign-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
cd /repo/_output || exit 2

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

0 comments on commit 0a5c1f4

Please sign in to comment.