-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.32 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Publish a new package
on:
workflow_dispatch:
inputs:
version:
description: "The package version to create (ex: 1.0.0)"
required: true
permissions:
id-token: write
contents: read
jobs:
test-package:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
build-and-publish:
timeout-minutes: 20
runs-on: ubuntu-latest
environment: publish
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: test python
run: |
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.8 -y
sudo apt install python3.9 -y
sudo apt install python3.10 -y
sudo apt install python3.11 -y
sudo apt install python3.12 -y
sudo apt install -y python3.8-distutils python3.9-distutils python3.10-distutils python3.11-distutils python3.12-distutils
- name: Publish
run: |
bash tools/publish.sh
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: enterprise_build
path: dist