forked from PennyLaneAI/pennylane
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 852 Bytes
/
upload.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
name: Upload
on:
release:
types: [published]
jobs:
tests:
uses: ./.github/workflows/interface-unit-tests.yml
with:
branch: ${{ github.ref }}
upload:
runs-on: ubuntu-latest
# Make sure that the PennyLane is not released unless the tests are passing.
needs:
- tests
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build PennyLane wheel
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements-ci.txt --upgrade
python setup.py bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI }}