Skip to content

Merge branch 'saudi/fix-os-bff-settings-block' into 'main' #35

Merge branch 'saudi/fix-os-bff-settings-block' into 'main'

Merge branch 'saudi/fix-os-bff-settings-block' into 'main' #35

Workflow file for this run

# Sharpmake GitHub Actions release workflow
name: release
on:
push:
tags:
- '**'
permissions:
contents: write
jobs:
builds:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2022]
framework: [net6.0]
configuration: [Release]
uses: ./.github/workflows/build.yml
with:
os: ${{ matrix.os }}
framework: ${{ matrix.framework }}
configuration: ${{ matrix.configuration }}
run_unit_tests: false
run_regression_tests: false
release:
needs: [builds]
runs-on: 'ubuntu-latest'
permissions:
contents: write
steps:
- name: 'Checkout the repo'
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: 'Generating changelog'
shell: pwsh
run: .github\Get-Changelog.ps1 ${{ github.ref_name }} > changelog.md
- name: 'Download workflow artifacts'
uses: actions/download-artifact@v4
with:
path: downloads
- name: 'Create release archives'
run: |
for OS in Linux macOS Windows
do
pushd ./Sharpmake-net6.0-$OS-${{ github.sha }}
zip -r ../Sharpmake-net6.0-$OS-${{ github.ref_name }}.zip .
popd
done
working-directory: downloads
- name: 'Create GitHub release'
uses: ncipollo/release-action@v1.14.0
with:
bodyFile: 'changelog.md'
artifacts: 'downloads/Sharpmake-net6.0-*-${{ github.ref_name }}.zip'