diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbb503546b..487b8f8ee6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,7 @@ jobs: ./artifacts/pkg/**/* ./artifacts/tst/**/* if-no-files-found: error - build-nuget: + build-nuget-preview: runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -95,9 +95,28 @@ jobs: shell: cmd env: EXCLUDE_RUN_ID_FROM_PACKAGE: true + EXCLUDE_SUFFIX_FROM_VERSION: false - uses: actions/upload-artifact@v2 with: - name: nuget + name: nuget_preview + path: | + ./artifacts/bin/**/* + ./artifacts/log/**/* + ./artifacts/pkg/**/* + ./artifacts/tst/**/* + if-no-files-found: error + build-nuget-release: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - run: ./scripts/cibuild.cmd -configuration release -architecture x64 + shell: cmd + env: + EXCLUDE_RUN_ID_FROM_PACKAGE: true + EXCLUDE_SUFFIX_FROM_VERSION: true + - uses: actions/upload-artifact@v2 + with: + name: nuget_release path: | ./artifacts/bin/**/* ./artifacts/log/**/* @@ -107,7 +126,7 @@ jobs: publish-nightlies-azure: runs-on: ubuntu-latest if: ${{ github.event_name == 'push' }} - needs: [ windows-x64, windows-x86, linux-x64, macos-x64, build-nuget ] + needs: [ windows-x64, windows-x86, linux-x64, macos-x64, build-nuget-preview, build-nuget-release ] steps: - uses: actions/download-artifact@v2 with: @@ -119,11 +138,11 @@ jobs: source-url: https://pkgs.terrafx.dev/index.json env: NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_PAT }} - - run: dotnet nuget push "./artifacts/pkg/Release/*.nupkg" --api-key AzureDevOps + - run: dotnet nuget push "./artifacts/pkg/Release/*.nupkg" --api-key AzureDevOps --skip-duplicate publish-nightlies-github: runs-on: ubuntu-latest if: ${{ github.event_name == 'push' }} - needs: [ windows-x64, windows-x86, linux-x64, macos-x64, build-nuget ] + needs: [ windows-x64, windows-x86, linux-x64, macos-x64, build-nuget-preview, build-nuget-release ] steps: - uses: actions/download-artifact@v2 with: @@ -132,4 +151,4 @@ jobs: - uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.x' - - run: dotnet nuget push "./artifacts/pkg/Release/*.nupkg" --source https://nuget.pkg.github.com/terrafx/index.json --api-key ${{ secrets.GITHUB_TOKEN }} + - run: dotnet nuget push "./artifacts/pkg/Release/*.nupkg" --source https://nuget.pkg.github.com/terrafx/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate diff --git a/Directory.Build.props b/Directory.Build.props index 28f41342f1..df81e32c75 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -42,8 +42,8 @@ true $(BaseArtifactsPath)pkg/$(Configuration)/ TerraFX.Interop.Windows - 10.0.20348 - beta1 + 10.0.20348.0 + rc1 pr diff --git a/Directory.Build.targets b/Directory.Build.targets index cadb3ca1c9..cd5ff5de13 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -18,7 +18,7 @@ - $(Version)-$(GITHUB_RUN_ID) + $(Version)-$(GITHUB_RUN_ID)