Skip to content

Commit ad474b6

Browse files
update workflow config
1 parent 33c37a1 commit ad474b6

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: ci
12
on: [push]
23

34
jobs:

.github/workflows/pythonpush.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: Upload Python Package
22

33
on:
4-
release:
5-
types: [created]
4+
push:
5+
tags:
6+
- v*
67

78
jobs:
89
deploy:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@master
1213
- name: Set up Python
13-
uses: actions/setup-python@v1
14+
uses: actions/setup-python@master
1415
with:
1516
python-version: '3.x'
1617
- name: Install dependencies
@@ -22,3 +23,17 @@ jobs:
2223
uses: pypa/gh-action-pypi-publish@master
2324
with:
2425
password: ${{ secrets.pypi_password }}
26+
- name: Create Release
27+
id: create_release
28+
uses: actions/create-release@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
31+
with:
32+
tag_name: ${{ github.ref }}
33+
release_name: Release ${{ github.ref }}
34+
body: |
35+
Changes in this Release
36+
- First Change
37+
- Second Change
38+
draft: true
39+
prerelease: false

0 commit comments

Comments
 (0)