CNX-9308 CNX-9632 Moving to Github Actions for DUI3 #42
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
name: .NET Build and Publish | |
on: | |
push: | |
branches: ["main", "dev", "dui3/alpha"] | |
pull_request: | |
branches: | |
- dui3/alpha | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.x.x | |
- name: NuGet Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: "5.x" | |
- name: Determine Version | |
id: version | |
uses: gittools/actions/gitversion/[email protected] | |
- name: Format | |
run: ./build.sh format | |
- name: Restore | |
run: ./build.sh restore | |
- name: Build | |
env: | |
VERSION: ${{ env.fullSemVer }} | |
FILE_VERSION: ${{ env.assemblySemFileVer }} | |
run: ./build.sh build | |
- name: Pack | |
run: ./build.sh zip | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output-${{ env.fullSemVer }} | |
path: output/*.* | |
compression-level: 0 # no compression | |
- name: Trigger Build Installers | |
run: ./build.sh build-installers ${{ secrets.CONNECTORS_GH_TOKEN }} ${{ github.run_id }} ${{ env.fullSemVer }} |