Skip to content

Commit

Permalink
Publishing workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
reduckted committed Feb 25, 2021
1 parent 699d270 commit 744321b
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
jobs:
build:
runs-on: windows-latest

env:
Configuration: Release
DeployExtension: false
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Extension

on:
release:
types: [published]

jobs:
publish:
runs-on: windows-latest

env:
Configuration: Release
DeployExtension: false

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup MSBuild
uses: microsoft/[email protected]
with:
vs-version: "[16.8,16.9)"

- name: Build
run: msbuild /t:Rebuild /Restore /v:Minimal

- name: Test
run: msbuild tests/ProjectFilter.UnitTests /t:Test /v:Minimal

- name: Publish
uses: cezarypiatek/[email protected]
with:
extension-file: source\ProjectFilter\bin\Release\ProjectFilter.vsix
publish-manifest-file: publish.json
personal-access-code: ${{ secrets.PUBLISHER_TOKEN }}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# 1.0.0 (2021-02-23)
# 1.0.0 (2021-02-25)

- 🎉 Initial release.
13 changes: 13 additions & 0 deletions publish.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "http://json.schemastore.org/vsix-publish",
"categories": ["coding"],
"identity": {
"internalName": "ProjectFilter"
},
"overview": "README.md",
"priceCategory": "free",
"publisher": "reduckted",
"private": false,
"qna": true,
"repo": "https://github.com/reduckted/ProjectFilter"
}

0 comments on commit 744321b

Please sign in to comment.