Fix deploy workflow

This commit is contained in:
sharpenedblade
2023-10-02 15:25:24 -07:00
parent 5b3bddda88
commit 0a5c1f4e78
3 changed files with 10 additions and 3 deletions
+5
View File
@@ -75,3 +75,8 @@ jobs:
with:
files: |
_output/*.rpm
deploy:
needs: ["build"]
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/deploy.yaml
+4 -2
View File
@@ -7,6 +7,7 @@ concurrency:
on:
release:
types: [released]
workflow_call:
jobs:
build-repo:
@@ -18,7 +19,7 @@ jobs:
- name: "Download release"
uses: robinraju/release-downloader@v1.8
with:
tag: ${{ github.ref_name }}
latest: true
fileName: "*"
out-file-path: "_output"
@@ -26,7 +27,7 @@ jobs:
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"
@@ -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') }}
+1 -1
View File
@@ -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