From 2e967a56a488aa25c02b9fc1371323d800473305 Mon Sep 17 00:00:00 2001 From: Kouji Matsui Date: Fri, 12 Apr 2024 10:31:04 +0900 Subject: [PATCH] Updated GA script. --- .github/workflows/build.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fea062c..7af1f29 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 @@ -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 @@ -66,8 +66,8 @@ 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) @@ -75,5 +75,5 @@ jobs: #- 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