-
Notifications
You must be signed in to change notification settings - Fork 21
50 lines (48 loc) · 1.13 KB
/
release.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
name: Release packages
on:
push:
tags:
- 'release/v*'
jobs:
package:
runs-on: ubuntu-latest
name: A job to build the packages
strategy:
matrix:
schema:
- CGMES_2.4.13_18DEC2013
- CGMES_2.4.15_16FEB2016
- CGMES_2.4.15_27JAN2020
- CGMES_3.0.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./package/
env:
USE_CIM_VERSION: ${{matrix.schema}}
- name: UploadRPM
uses: actions/upload-artifact@v4
with:
name: rpm_${{matrix.schema}}
path: ${{ github.workspace }}/build/*.rpm
- name: UploadDEB
uses: actions/upload-artifact@v4
with:
name: deb_${{matrix.schema}}
path: ${{ github.workspace }}/build/*.deb
release:
needs: package
runs-on: ubuntu-latest
steps:
- name: GetArtifact
uses: actions/download-artifact@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
*/*.rpm
*/*.deb
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}