feat(ci): publish on covector workflow

This commit is contained in:
Lucas Nogueira
2021-09-29 11:09:16 -03:00
parent 7d2b804844
commit 66b4602a11
2 changed files with 9 additions and 19 deletions

View File

@@ -22,8 +22,9 @@ jobs:
id: covector
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: 'version'
command: 'version-or-publish'
- name: Create Pull Request With Versions Bumped
if: steps.covector.outputs.commandRan == 'version'
uses: tauri-apps/create-pull-request@v3.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
@@ -32,3 +33,10 @@ jobs:
commit-message: "apply version updates"
labels: "version updates"
body: ${{ steps.covector.outputs.change }}
- name: Publish Extension
if: steps.covector.outputs.commandRan == 'publish'
uses: lannonbr/vsce-action@master
with:
args: "publish -p $VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}

View File

@@ -1,18 +0,0 @@
on:
push:
branches:
- release
name: Publish Extension
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- uses: lannonbr/vsce-action@master
with:
args: "publish -p $VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}