From 744321b11f209cf8583fc3288d1176a7e94fd676 Mon Sep 17 00:00:00 2001 From: reduckted Date: Thu, 25 Feb 2021 20:25:45 +1000 Subject: [PATCH] Publishing workflow. --- .github/workflows/ci.yml | 1 + .github/workflows/publish.yml | 35 +++++++++++++++++++++++++++++++++++ CHANGELOG.md | 2 +- publish.json | 13 +++++++++++++ 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml create mode 100644 publish.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b746b9..719cba8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ on: jobs: build: runs-on: windows-latest + env: Configuration: Release DeployExtension: false diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..dd9ddb3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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/setup-msbuild@v1.0.2 + 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/VsixPublisherAction@0.2 + with: + extension-file: source\ProjectFilter\bin\Release\ProjectFilter.vsix + publish-manifest-file: publish.json + personal-access-code: ${{ secrets.PUBLISHER_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 70b9b22..5aeb6e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ -# 1.0.0 (2021-02-23) +# 1.0.0 (2021-02-25) - 🎉 Initial release. diff --git a/publish.json b/publish.json new file mode 100644 index 0000000..f98f2ac --- /dev/null +++ b/publish.json @@ -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" +}