Skip to content

Test the change.

Test the change. #1398

# Workflow which builds .tar.gz and .whl development artifact on each push to

Check failure on line 1 in .github/workflows/publish_dev_artifact.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish_dev_artifact.yml

Invalid workflow file

`on.workflow_run` does not reference any workflows. See https://docs.github.com/actions/learn-github-actions/events-that-trigger-workflows#workflow_run for more information
# 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:
branches:
- trunk
- chore/deps-update
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@v5
with:
python-version: 3.9
- 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 - .tar.gz
uses: actions/upload-artifact@v4
with:
name: libcloud-dev-tarball
retention-days: 60
compression-level: 0
path: |
dist/*.tar.gz
- name: Store dev artifacts - .whl
uses: actions/upload-artifact@v4
with:
name: libcloud-dev-wheel
retention-days: 60
compression-level: 0
path: |
dist/*.whl