Skip to content

fix

fix #22

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
DOTNET_NOLOGO: 1
VERSION: 0.0.1
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Test Debug
run: |
./build/test_all.ps1 Debug prod
- name: Test Release
run: |
./build/test_all.ps1 Release prod
- name: NuGet Publish
if: ${{ github.ref == 'refs/heads/master' }}
shell: pwsh
run: |
./build/pack.ps1
- name: Set variables
run: |
$ver = Get-Content -Path ./build/pkg.version
echo "VERSION=$ver" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
echo $ver
- name: Create Tag
if: ${{ github.ref == 'refs/heads/master' }}
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ env.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}