-
Notifications
You must be signed in to change notification settings - Fork 924
61 lines (51 loc) · 1.46 KB
/
publish_dev_artifact.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
54
55
56
57
58
59
60
61
# Workflow which builds .tar.gz and .whl development artifact on each push to
# trunk and stores it as a Github Actions workflow artifact
# NOTE: Those artifacts are not persisted long term and are mostly meant to be
# used for testing and similar
name: Publish dev release bundle
on:
workflow_run:
workflows:
- "CI"
branches:
- trunk
types:
- completed
permissions:
contents: read # for actions/checkout to fetch code
jobs:
generate_and_publish_dev_release_artifacts:
name: Generate and Publish Dev Release Artifacts
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Print Environment Info
id: printenv
run: |
printenv | sort
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Use Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install build
- name: Create Dev Artifacts
run: |
python -m build
ls -la dist
# Ensure artifacts have been created
ls -la dist | grep .tar.gz
ls -la dist | grep .whl
- name: Store dev artifacts
uses: actions/upload-artifact@v3
with:
name: libcloud-dev-artifacts
retention-days: 60
path: |
dist/*.tar.gz
dist/*.whl