File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ concurrency:
77on :
88 release :
99 types : [released]
10+ workflow_call :
1011
1112jobs :
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"
5253 NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
5354 with :
5455 publish-dir : dnf-repo
56+ production-deploy : ${{ startsWith(github.ref, 'refs/tags/v') }}
Original file line number Diff line number Diff line change 22cd /repo/_output || exit 2
33
44echo " $RPM_SIGNING_PRIVATE_KEY_B64 " | base64 -d | gpg --import
5- rpm --addsign ./* .rpm
65echo -e " %_signature gpg\n%_gpg_name T2Linux Fedora" > ~ /.rpmmacros
6+ rpm --addsign ./* .rpm
You can’t perform that action at this time.
0 commit comments