forked from robinostlund/volkswagencarnet
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.07 KB
/
testrelease.yaml
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: Test Release
on:
release:
#types: [published, created, edited, unpublished, prereleased, released]
types: [prereleased]
jobs:
build:
name: Upload Package to PyPi Test Repository
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build wheel twine setuptools setuptools_scm
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build package
run: |
python -m build --outdir dist/
python -m twine check dist/*
python -m setuptools_scm --strip-dev
- name: Publish package to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN_TEST }}
repository_url: https://test.pypi.org/legacy/
print_hash: true
skip_existing: true