mirror of
https://github.com/t2linux/fedora.git
synced 2026-04-30 13:51:42 -07:00
Fix deploy workflow
This commit is contained in:
@@ -75,3 +75,8 @@ jobs:
|
||||
with:
|
||||
files: |
|
||||
_output/*.rpm
|
||||
|
||||
deploy:
|
||||
needs: ["build"]
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: ./.github/workflows/deploy.yaml
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user