-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1000 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Publish
on:
workflow_run:
workflows: ["model_tests"]
branches: [main]
types:
- completed
jobs:
publish:
if: >-
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'main' &&
github.event.workflow_run.event == 'push' &&
github.repository == 'rwth-i6/i6_models'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Python deps
run: |
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
pip3 install --user --upgrade pip setuptools wheel twine
- run: python3 setup.py sdist
# https://github.com/marketplace/actions/pypi-publish
- name: Publish to PyPI
# https://github.com/pypa/gh-action-pypi-publish/issues/112
uses: pypa/gh-action-pypi-publish@release/v1.4
with:
user: __token__
password: ${{ secrets.pypi_password }}