-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
public-release: | ||
description: "A boolean value indicating whether this build is recognized as building from a public release branch" | ||
value: ${{ jobs.build.outputs.public-release }} | ||
sem-ver-1: | ||
description: "The SemVer 1.0 compliant version" | ||
value: ${{ jobs.build.outputs.sem-ver-1 }} | ||
sem-ver-2: | ||
description: "The SemVer 2.0 compliant version" | ||
value: ${{ jobs.build.outputs.sem-ver-2 }} | ||
simple-ver: | ||
description: "The three integer version" | ||
value: ${{ jobs.build.outputs.version }} | ||
version: | ||
description: "The four integer version" | ||
value: ${{ jobs.build.outputs.version }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
# convert PublicRelease to a boolean by comparing the string value to 'true' | ||
public-release: ${{ steps.nbgv.outputs.PublicRelease == 'true' }} | ||
sem-ver-1: ${{ steps.nbgv.outputs.SemVer1 }} | ||
sem-ver-2: ${{ steps.nbgv.outputs.SemVer2 }} | ||
simple-ver: ${{ steps.nbgv.outputs.SimpleVersion }} | ||
version: ${{ steps.nbgv.outputs.Version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 # fetch-depth 0 needed for NBGV | ||
- name: Nerdbank.GitVersioning | ||
uses: dotnet/[email protected] | ||
id: nbgv | ||
- name: Pack Extension | ||
run: npx vsce pack ${{ steps.nbgv.outputs.SemVer1 }} | ||
- name: Upload Extension Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: Extension | ||
path: dbos-ttdbg*.vsix |
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,17 @@ | ||
name: On Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
- release/* | ||
types: | ||
- ready_for_review | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml |
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,13 @@ | ||
name: On Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
- release/* | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
|