Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 1df0e6c

Browse files
committed
tag githib last
1 parent 0305ae2 commit 1df0e6c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,24 @@ jobs:
7373
- name: release to pypi
7474
if: steps.check.outputs.release == 'yes'
7575
run: make release-pypi
76+
77+
github:
78+
runs-on: ubuntu-latest
79+
env:
80+
PYTHON_ENV: ci
81+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
82+
GITHUB_TOKEN: ${{ secrets.QMBOT_GITHUB_TOKEN }}
83+
needs: build
84+
if: github.ref == 'refs/heads/master'
85+
86+
steps:
87+
- name: Set up Python ${{ matrix.python-version }}
88+
uses: actions/setup-python@v2
89+
with:
90+
python-version: 3.8
91+
- name: check if we can publish
92+
id: check
93+
run: echo ::set-output name=release::$(make test-version)
7694
- name: release to github
77-
if: steps.check.outputs.release == 'yes' && matrix.python-version == '3.8'
95+
if: steps.check.outputs.release == 'yes'
7896
run: make release-github

0 commit comments

Comments
 (0)