forked from MatthieuDartiailh/bytecode
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 926 Bytes
/
Copy pathrpmbuild.yml
File metadata and controls
40 lines (32 loc) · 926 Bytes
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
name: RPM build
on:
push:
tags:
- 'v*.*.*'
jobs:
build_rpm:
if: ${{ github.event.base_ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set release version env
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- name: Build RPM package
uses: ./.github/actions/buildrpm
- name: Upload RPM as artifact
uses: actions/upload-artifact@v4
with:
name: python-bytecode-binary-rpm
path: ${{ github.workspace }}/*.rpm
test_rpm:
needs: build_rpm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download RPM artifact
uses: actions/download-artifact@v4
with:
name: python-bytecode-binary-rpm
path: ./.github/actions/testrpm
- name: Test RPM package
uses: ./.github/actions/testrpm