Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5bfa authored Jun 6, 2024
1 parent e5521b1 commit a635411
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ on:
run-name: ${{ github.event_name == 'pull_request' && 'FluentHub PR Validation' || 'FluentHub CI Validation' }}

env:
WORKING_DIR: ${{ github.workspace }} # Default: 'D:\a\FluentHub\FluentHub'
WORKING_DIR: '${{ github.workspace }}' # Default: 'D:\a\FluentHub\FluentHub'
SOLUTION_PATH: '${{ github.workspace }}\FluentHub.sln'
PACKAGE_PROJECT_DIR: '${{ github.workspace }}\src\FluentHub.Package'
PACKAGE_PROJECT_PATH: '${{ github.workspace }}\src\FluentHub.Package\FluentHub.Package.wapproj'
AUTOMATED_TESTS_ARCHITECTURE: 'x64'
AUTOMATED_TESTS_CONFIGURATION: 'Release'
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages'
APP_CREDENTIALS_PATH: '${{ github.workspace }}\src\FluentHub.App\AppCredentials.config'

jobs:

Expand Down Expand Up @@ -88,13 +89,10 @@ jobs:

- name: Checkout the repository
uses: actions/checkout@v3

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Setup NuGet
uses: NuGet/[email protected]

- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
Expand All @@ -103,11 +101,10 @@ jobs:
- name: Save base64 credentials into a file
shell: pwsh
run: |
$filename = '$env:GH_CREDENTIALS/src/FluentHub.App/AppCredentials.config'
$bytes = [Convert]::FromBase64String($env:GH_CREDENTIALS)
[IO.File]::WriteAllBytes($filename, $bytes)
$bytes = [Convert]::FromBase64String($env:GH_CREDENTIALS_SECRET)
[IO.File]::WriteAllBytes($env:APP_CREDENTIALS_PATH, $bytes)
env:
GH_CREDENTIALS: '${{ secrets.GH_CREDENTIALS_JSON_BASE64 }}'
GH_CREDENTIALS_SECRET: '${{ secrets.GH_CREDENTIALS_JSON_BASE64 }}'

- name: Restore NuGet
shell: pwsh
Expand Down

0 comments on commit a635411

Please sign in to comment.