Merge branch 'fix-exception-on-macos' into 'main' #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/[email protected] | |
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/[email protected] | |
with: | |
bodyFile: 'changelog.md' | |
artifacts: 'downloads/Sharpmake-net6.0-*-${{ github.ref_name }}.zip' |