Skip to content

Commit

Permalink
Update CI.yml to use dotnet version global.json + publish temp version
Browse files Browse the repository at this point in the history
  • Loading branch information
PrincessMadMath committed Dec 17, 2024
1 parent cfad73e commit 5aaa276
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: CI

on:
pull_request:
branches: ["main"]
branches: ["main", "master"]
paths-ignore: ["*.md"]

push:
branches:
Expand All @@ -14,17 +15,30 @@ concurrency:
cancel-in-progress: true

jobs:
main:
ci:
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v4
with:
global-json-file: "global.json"
source-url: ${{ secrets.NUGET_GSOFTDEV_FEED_URL }}
env:
NUGET_AUTH_TOKEN: ${{ secrets.GSOFT_NUGET_API_KEY }}

- run: ./Build.ps1
shell: pwsh
env:
NUGET_SOURCE: ${{ secrets.NUGET_GSOFTDEV_FEED_URL }}
NUGET_API_KEY: ${{ secrets.GSOFT_NUGET_API_KEY }}

linearb:
needs: [ci]
uses: gsoft-inc/wl-reusable-workflows/.github/workflows/linearb-deployment.yml@main
with:
environment: development
secrets: inherit

0 comments on commit 5aaa276

Please sign in to comment.