-
Notifications
You must be signed in to change notification settings - Fork 866
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Ship as global tool to NuGet.org (#8280)
* chore!: drop azure pipeline, build scripts and nuspec files * chore!: .NET 6 only * ci: Release using GH action
- Loading branch information
Showing
74 changed files
with
95 additions
and
2,051 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 |
---|---|---|
@@ -1,39 +1,29 @@ | ||
name: CodeQL | ||
|
||
name: codeql | ||
on: | ||
push: | ||
branches: [ dev ] | ||
pull_request: | ||
branches: [ dev ] | ||
schedule: | ||
- cron: '28 6 * * 5' | ||
|
||
- cron: '0 0 * * 0' | ||
jobs: | ||
analyze: | ||
name: CodeQL | ||
runs-on: windows-2019 | ||
|
||
codeql: | ||
runs-on: windows-latest | ||
permissions: | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'csharp', 'javascript' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
fetch-depth: 0 | ||
dotnet-version: 6.x | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
- uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
config-file: ./.github/codeql-config.yml | ||
- run: pwsh .\tools\Deployment\deploy.ps1 | ||
languages: ['csharp', 'javascript'] | ||
|
||
- run: ./UpdateTemplate.ps1 | ||
- run: dotnet build -c Release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 | ||
- uses: github/codeql-action/analyze@v1 |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: release | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.x | ||
|
||
- run: ./UpdateTemplate.ps1 | ||
- run: dotnet pack -c Release -o drop /p:Version=${{ github.ref_name }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: docfx | ||
path: drop | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '6.0.x' | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: docfx | ||
path: drop | ||
- run: | | ||
for filename in ./drop/*.nupkg; do | ||
dotnet nuget push "$filename" --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json | ||
done |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.