Reset the version number as 2.0.0 #33
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: Build | |
on: | |
workflow_dispatch: | |
branches: [ main ] | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: control/package-lock.json | |
- uses: actions/setup-dotnet@v3 | |
# Build solution | |
# - https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables | |
- run: dotnet build | |
env: | |
DOTNET_ROLL_FORWARD: Major | |
DOTNET_NOLOGO: 1 | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
# Prepare artifact(s) | |
# - Create an arbitrary file in the root of the dist directory. | |
# - This is to try and make it clearer that there is a nested zip inside the artifact zip file. | |
- run: echo "${{ github.server_url }}/${{ github.repository }}" > ./dist/repo-url.txt | |
- name: 'Upload artifact' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }}__extract_this_zip | |
path: ./dist/* | |
retention-days: 15 |