Update release workflow (#155)
This commit is contained in:
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
@@ -1,24 +1,16 @@
|
|||||||
name: "Tag & Deploy Action"
|
name: "Update v1 tag"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
branches:
|
types: [released]
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2.5.0
|
||||||
|
|
||||||
- name: Install
|
- uses: rickstaa/action-create-tag@v1
|
||||||
run: npm ci
|
with:
|
||||||
|
tag: v1
|
||||||
- name: Run Tests
|
force_push_tag: true
|
||||||
run: npm run test
|
|
||||||
|
|
||||||
- name: Update v1 Tag
|
|
||||||
uses: hole19/git-tag-action@master
|
|
||||||
env:
|
|
||||||
TAG: v1
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user