-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from wakatime/feature/nuget-update
Update nuget to 4.2.2
- Loading branch information
Showing
6 changed files
with
81 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,53 +50,53 @@ jobs: | |
sha: context.sha | ||
}) | ||
# build-dev16: | ||
# name: Build Dev16 | ||
# runs-on: windows-2019 | ||
# needs: [version] | ||
# steps: | ||
# - | ||
# name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - | ||
# name: Setup MSBuild | ||
# uses: microsoft/setup-msbuild@v1 | ||
# - | ||
# name: Setup NuGet | ||
# uses: NuGet/setup-nuget@v1 | ||
# - | ||
# name: Restore NuGet packages | ||
# run: nuget restore ./Dev16/Dev16.csproj -PackagesDirectory ./packages -NonInteractive | ||
# - | ||
# name: Update version | ||
# run: | | ||
# (Get-Content -Path Dev16\source.extension.vsixmanifest) | | ||
# ForEach-Object {$_ -Replace '1.0.0', '${{ needs.version.outputs.semver }}'} | | ||
# Set-Content -Path Dev16\source.extension.vsixmanifest | ||
# (Get-Content -Path Dev16\Properties\AssemblyInfo.cs) | | ||
# ForEach-Object {$_ -Replace '1.0.0', '${{ needs.version.outputs.semver }}'} | | ||
# Set-Content -Path Dev16\Properties\AssemblyInfo.cs | ||
# - | ||
# name: Build Dev16 for Release | ||
# run: msbuild Dev16/Dev16.csproj -property:Configuration=Release -property:platform="AnyCPU" -property:DeployExtension=false | ||
# - | ||
# name: Upload artifacts | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: WakaTime.Dev16.vsix | ||
# path: Dev16/bin/Release/WakaTime.Dev16.vsix | ||
# - | ||
# name: Remove tag if failure | ||
# if: ${{ failure() }} | ||
# uses: actions/github-script@v7 | ||
# with: | ||
# github-token: ${{ github.token }} | ||
# script: | | ||
# github.rest.git.deleteRef({ | ||
# owner: context.repo.owner, | ||
# repo: context.repo.repo, | ||
# ref: "tags/${{ needs.version.outputs.semver }}" | ||
# }) | ||
build-dev16: | ||
name: Build Dev16 | ||
runs-on: windows-2019 | ||
needs: [version] | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
- | ||
name: Setup NuGet | ||
uses: NuGet/setup-nuget@v1 | ||
- | ||
name: Restore NuGet packages | ||
run: nuget restore ./Dev16/Dev16.csproj -PackagesDirectory ./packages -NonInteractive | ||
- | ||
name: Update version | ||
run: | | ||
(Get-Content -Path Dev16\source.extension.vsixmanifest) | | ||
ForEach-Object {$_ -Replace '1.0.0', '${{ needs.version.outputs.semver }}'} | | ||
Set-Content -Path Dev16\source.extension.vsixmanifest | ||
(Get-Content -Path Dev16\Properties\AssemblyInfo.cs) | | ||
ForEach-Object {$_ -Replace '1.0.0', '${{ needs.version.outputs.semver }}'} | | ||
Set-Content -Path Dev16\Properties\AssemblyInfo.cs | ||
- | ||
name: Build Dev16 for Release | ||
run: msbuild Dev16/Dev16.csproj -property:Configuration=Release -property:platform="AnyCPU" -property:DeployExtension=false | ||
- | ||
name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: WakaTime.Dev16.vsix | ||
path: Dev16/bin/Release/WakaTime.Dev16.vsix | ||
- | ||
name: Remove tag if failure | ||
if: ${{ failure() }} | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ github.token }} | ||
script: | | ||
github.rest.git.deleteRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: "tags/${{ needs.version.outputs.semver }}" | ||
}) | ||
build-dev17: | ||
name: Build Dev17 | ||
|
@@ -146,32 +146,32 @@ jobs: | |
ref: "tags/${{ needs.version.outputs.semver }}" | ||
}) | ||
# publish-dev16: | ||
# name: Publish Dev16 | ||
# runs-on: windows-latest | ||
# needs: [build-dev16, build-dev17] # set dependencies for both build steps to ensure both ran correctly and didn't delete the tag in case of failure | ||
# steps: | ||
# - | ||
# name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - | ||
# name: Download artifacts | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# pattern: "*.Dev16.vsix" | ||
# path: build/ | ||
# - | ||
# name: Publish Dev16 to Marketplace | ||
# uses: cezarypiatek/[email protected] | ||
# with: | ||
# extension-file: ${{ github.workspace }}\build\WakaTime.Dev16.vsix\WakaTime.Dev16.vsix | ||
# publish-manifest-file: Dev16\publishManifest.json | ||
# personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }} | ||
publish-dev16: | ||
name: Publish Dev16 | ||
runs-on: windows-latest | ||
needs: [build-dev16, build-dev17] # set dependencies for both build steps to ensure both ran correctly and didn't delete the tag in case of failure | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: "*.Dev16.vsix" | ||
path: build/ | ||
- | ||
name: Publish Dev16 to Marketplace | ||
uses: cezarypiatek/[email protected] | ||
with: | ||
extension-file: ${{ github.workspace }}\build\WakaTime.Dev16.vsix\WakaTime.Dev16.vsix | ||
publish-manifest-file: Dev16\publishManifest.json | ||
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }} | ||
|
||
publish-dev17: | ||
name: Publish Dev17 | ||
runs-on: windows-latest | ||
needs: [build-dev17] # set dependencies for both build steps to ensure both ran correctly and didn't delete the tag in case of failure | ||
needs: [build-dev16, build-dev17] # set dependencies for both build steps to ensure both ran correctly and didn't delete the tag in case of failure | ||
steps: | ||
- | ||
name: Checkout | ||
|
@@ -193,7 +193,7 @@ jobs: | |
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: [version, publish-dev17] | ||
needs: [version, publish-dev16, publish-dev17] | ||
steps: | ||
- | ||
name: Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters