forked from softlayer/softlayer-python
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.38 KB
/
release.yml
File metadata and controls
52 lines (49 loc) · 1.38 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
name: Release Snapcraft and PyPi
on:
release:
types: [published]
jobs:
snap-release:
runs-on: ubuntu-18.04
strategy:
matrix:
arch: ['armhf','amd64','arm64','ppc64el','s390x']
steps:
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1.2.0
with:
snapcraft_token: ${{ secrets.snapcraft_token }}
- name: Push to stable
run: |
VERSION=`snapcraft list-revisions slcli --arch ${{ matrix.arch }} | grep "edge\*" | awk '{print $1}'`
echo Publishing $VERSION on ${{ matrix.arch }}
snapcraft release slcli $VERSION stable
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.CGALLO_PYPI }}
repository_url: https://upload.pypi.org/legacy/