forked from dipdup-io/stone-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.07 KB
/
release-fedora.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release Stone Prover for Fedora
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
container:
image: fedora:38
options: --workdir /github/workspace
env:
TARGET_ARCH: x86_64
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up environment and build
run: |
chmod +x ./fedora-build.sh
./fedora-build.sh
- name: Test
run: |
chmod +x ./test.sh
./test.sh
- name: Set version output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Package RPM
run: |
chmod +x ./package_rpm.sh
./package_rpm.sh ${{ steps.vars.outputs.tag }}
- name: Rename RPM package
run: |
mv /tmp/stone-prover/*.rpm /github/workspace/stone-prover-fedora-${TARGET_ARCH}.rpm
- name: Upload files to GitHub release
uses: softprops/action-gh-release@v2
with:
files: |
/github/workspace/*.rpm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}