GitHub Actions using PowerShell Environment Variables

This commit is contained in:
Micheal Colhoun 2021-09-08 12:54:04 +01:00
parent a4895cc34c
commit b351c648b8

View File

@ -12,6 +12,7 @@ on:
env: env:
BUILD_CONFIG: Release BUILD_CONFIG: Release
SOLUTION: DarkUI.sln SOLUTION: DarkUI.sln
PROJECT: DarkUI\DarkUI.csproj
jobs: jobs:
build: build:
@ -42,8 +43,9 @@ jobs:
run: | run: |
echo Home: $HOME echo Home: $HOME
echo SOLUTION: ${{env.SOLUTION}} echo SOLUTION: ${{env.SOLUTION}}
echo SOLUTION: ${{env.PROJECT}}
echo BUILD_CONFIG: ${{env.BUILD_CONFIG}} echo BUILD_CONFIG: ${{env.BUILD_CONFIG}}
echo Version: $ENV:VERSION echo Version: $ENV:VERSION
echo GITHUB_REPOSITORY: $ENV:GITHUB_REPOSITORY echo GITHUB_REPOSITORY: $ENV:GITHUB_REPOSITORY
- name: Pack - name: Pack
run: dotnet pack --configuration Release /p:Version=$ENV:VERSION --output . run: dotnet pack ${{env.PROJECT}} --configuration Release /p:Version=$ENV:VERSION --output .