Skip to content

Prepare release v2.2.0 (#38) #1

Prepare release v2.2.0 (#38)

Prepare release v2.2.0 (#38) #1

Workflow file for this run

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 }}