Skip to content

Commit

Permalink
[release] split artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrael1 authored Aug 8, 2022
1 parent 54bfa40 commit 054bf77
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}.vsix
path: /_built/**/*2022.vsix
path: /_built/**/*.vsix

publish:
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
Expand All @@ -65,10 +65,14 @@ jobs:
with:
name: ${{ github.event.repository.name }}.vsix

- name: Upload to Open VSIX
- name: Upload 2022 to Open VSIX
uses: timheuer/openvsixpublish@v1
with:
vsix-file: ${{ github.event.repository.name }}.vsix
vsix-file: ${{ github.event.repository.name }}2022.vsix
- name: Upload 2019 to Open VSIX
uses: timheuer/openvsixpublish@v1
with:
vsix-file: ${{ github.event.repository.name }}2019.vsix

- name: Tag and Release
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[release]') }}
Expand All @@ -80,10 +84,18 @@ jobs:
files: |
**/*.vsix
- name: Publish extension to Marketplace
- name: Publish 2022 extension to Marketplace
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[release]') }}
uses: cezarypiatek/[email protected]
with:
extension-file: '${{ github.event.repository.name }}2022.vsix'
publish-manifest-file: 'vs-publish.json'
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}

- name: Publish 2019 extension to Marketplace
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[release]') }}
uses: cezarypiatek/[email protected]
with:
extension-file: '${{ github.event.repository.name }}.vsix'
extension-file: '${{ github.event.repository.name }}2019.vsix'
publish-manifest-file: 'vs-publish.json'
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}

0 comments on commit 054bf77

Please sign in to comment.