Skip to content

Commit

Permalink
Updated GA script.
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Apr 12, 2024
1 parent facf837 commit 2e967a5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on: [push]

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:

#-----------------------------------------------------------------------
# Checkout

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
# lfs: true
Expand All @@ -20,16 +20,16 @@ jobs:
- name: Extract branch name
id: extract_branch_name
run: |
$branch_name=$(git name-rev --name-only --exclude=tags/* HEAD)
export branch_name=`git name-rev --name-only --exclude=tags/* HEAD`
echo "Detected current branch: ${branch_name}"
echo "::set-output name=branch_name::${branch_name}"
echo "branch_name=${branch_name}" >> $GITHUB_OUTPUT
#-----------------------------------------------------------------------
# Setup environments
# Setup environments

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.2.x
Expand Down Expand Up @@ -66,14 +66,14 @@ jobs:
- name: Deploy NuGet package (develop/ref1)
if: startsWith( github.ref, 'refs/tags/' )
run: |
dotnet nuget push artifacts\FlashCap.*.nupkg --source ref1
dotnet nuget push artifacts\FSharp.FlashCap.*.nupkg --source ref1
dotnet nuget push artifacts/FlashCap.*.nupkg --source ref1
dotnet nuget push artifacts/FSharp.FlashCap.*.nupkg --source ref1
#-----------------------------------------------------------------------
# Deploy packages (main)

#- name: Deploy NuGet package (main/ref2)
# if: (startsWith( github.ref, 'refs/tags/' )) && (endsWith(steps.extract_branch_name.outputs.branch_name, 'main'))
# run: |
# dotnet nuget push artifacts\FlashCap.*.nupkg --source ref1
# dotnet nuget push artifacts\FSharp.FlashCap.*.nupkg --source ref1
# dotnet nuget push artifacts/FlashCap.*.nupkg --source ref1
# dotnet nuget push artifacts/FSharp.FlashCap.*.nupkg --source ref1

0 comments on commit 2e967a5

Please sign in to comment.