-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding GitHub action to build and publish all feature branches to dev…
… extension
- Loading branch information
1 parent
a257418
commit 583cb92
Showing
4 changed files
with
31 additions
and
4 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,27 @@ | ||
name: Example workflow using Snyk | ||
on: | ||
push: | ||
branches-ignore: main | ||
|
||
env: | ||
PUBLISHER_ID: ${{ secrets.PUBLISHER_ID }} | ||
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Extract Version number | ||
- id: set_version | ||
run: | | ||
content=`cat ./vss-extension-dev.json` | ||
content="${content//'%'/'%25'}" | ||
content="${content//$'\n'/'%0A'}" | ||
content="${content//$'\r'/'%0D'}" | ||
echo "::set-output name=vssextensiondevjson::$content" | ||
name: Publish Visual Studio extension | ||
- run : | | ||
npm install -g tfx-cli | ||
npx tfx extension create --output-path --manifest-globs vss-extension-dev.json | ||
npx tfx extension publish --auth-type pat -t $AZURE_TOKEN --publisher $PUBLISHER_ID --vsix ./SnykProfessionalServices.snyk-artifactory-upload-dev-${{fromJson(steps.set_version.outputs.vssextensiondevjson).version}}.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
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,3 @@ | ||
node_modules | ||
.dccache | ||
*.vsix |
This file was deleted.
Oops, something went wrong.