Skip to content

Commit fc6c262

Browse files
authored
Update release.yml
1 parent 6221625 commit fc6c262

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
paths:
77
- __version__.py
8+
tags:
9+
- "!*"
810
workflow_dispatch:
911
jobs:
1012
build:
@@ -19,7 +21,7 @@ jobs:
1921
- name: Checkout code
2022
uses: actions/checkout@master
2123
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v1
24+
uses: actions/setup-python@v2.2.2
2325
with:
2426
python-version: ${{ matrix.python-version }}
2527

@@ -70,7 +72,8 @@ jobs:
7072
id: create_release
7173
uses: actions/create-release@master
7274
env:
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
75+
# in order for this to trigger proceeding action the token cannot be github default token.
76+
GITHUB_TOKEN: ${{ secrets.MOWORKFLOWTOKEN }}
7477
with:
7578
tag_name: ${{ steps.get_version.outputs.version }}
7679
release_name: ${{ steps.get_version.outputs.version }}
@@ -84,4 +87,4 @@ jobs:
8487
8588
${{ steps.changelog.outputs.body }}
8689
draft: false
87-
prerelease: true
90+
prerelease: true

0 commit comments

Comments
 (0)