-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (44 loc) · 1.13 KB
/
publish.yml
File metadata and controls
48 lines (44 loc) · 1.13 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
name: Upload Python Package
on:
workflow_dispatch:
inputs:
bump:
description: "Bump which version number? (major, minor, patch)"
required: true
default: "patch"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
env:
CI: true
PYTHON_PATH: python
PYTHON_VERSION: 3.9
run: |
make pre_build
- name: Bump version
env:
PYTHON_PATH: python
run: |
git config user.email "Grp-opensourceoffice@adobe.com"
git config user.name "Adobe Release Bot"
make version_bump part=${{ github.event.inputs.bump }}
- name: Build and publish new version
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.ADOBE_BOT_PYPI_TOKEN }}
CI: true
PYTHON_PATH: python
run: |
make build
make publish
- name: Push updated version and tag
run: |
git push origin main
git push --tags origin