Skip to content

Commit 318ddaf

Browse files
committed
Set-up packaging for Fedora 30
1 parent 831e19c commit 318ddaf

File tree

1 file changed

+50
-2
lines changed

1 file changed

+50
-2
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,54 @@ jobs:
166166
name: fedora-31-latest
167167
path: pkg/fedora/out/x86_64
168168

169+
build-f30:
170+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
171+
172+
name: Build Fedora 30 package
173+
runs-on: ubuntu-latest
174+
needs: [lint, test]
175+
container: fedora:30
176+
177+
steps:
178+
- name: Checkout code
179+
uses: actions/checkout@v2
180+
181+
- name: Install build dependencies
182+
run: |
183+
dnf distro-sync -y
184+
dnf install -y rpmdevtools rpm-sign 'dnf-command(builddep)'
185+
dnf builddep -y pkg/fedora/surface-dtx-daemon.spec
186+
187+
- name: Build package
188+
run: |
189+
cd pkg/fedora
190+
# Build the .rpm packages
191+
./makerpm
192+
193+
- name: Sign packages
194+
env:
195+
GPG_KEY_ID: 56C464BAAC421453
196+
GPG_KEY: ${{ secrets.SURFACE_GPG_KEY }}
197+
run: |
198+
cd pkg/fedora/out/x86_64
199+
200+
# import GPG key
201+
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
202+
203+
# sign package
204+
rpm --resign *.rpm --define "_gpg_name $GPG_KEY_ID"
205+
206+
- name: Upload artifacts
207+
uses: actions/upload-artifact@v1
208+
with:
209+
name: fedora-30-latest
210+
path: pkg/fedora/out/x86_64
211+
169212
release:
170213
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
171214

172215
name: Publish release
173-
needs: [build-bin, build-deb, build-f31]
216+
needs: [build-bin, build-deb, build-f31, build-f30]
174217
runs-on: ubuntu-latest
175218

176219
steps:
@@ -187,7 +230,12 @@ jobs:
187230
- name: Download Fedora 31 artifacts
188231
uses: actions/download-artifact@v1
189232
with:
190-
name: fedora-31-latestt
233+
name: fedora-31-latest
234+
235+
- name: Download Fedora 30 artifacts
236+
uses: actions/download-artifact@v1
237+
with:
238+
name: fedora-30-latest
191239

192240
- name: Upload assets
193241
uses: svenstaro/upload-release-action@v1-release

0 commit comments

Comments
 (0)