Skip to content

Commit

Permalink
Add autorelease job to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
svsool committed Jul 6, 2020
1 parent d00aaff commit 400a3c3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- '**'
tags:
- 'v*'
release:
types:
- created
Expand Down Expand Up @@ -47,9 +49,27 @@ jobs:
uses: GabrielBB/[email protected]
with:
run: yarn test
create_release:
name: Create Release
if: success() && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
- name: Install Dependencies
run: yarn
- name: Package
run: yarn package
- uses: "marvinpinto/[email protected]"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: |
markdown-memo-*.vsix
publish:
name: Publish
if: success() && startsWith(github.ref, 'refs/tags/')
if: success() && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-18.04
needs: [check-types, lint, tests]
steps:
Expand Down

0 comments on commit 400a3c3

Please sign in to comment.