You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2022/03/18 23:05:52 UTC

[libcloud] branch trunk updated: Add new GHA workflow which builds and stores libcloud dev artifact as an GHA artifact.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6d39c34  Add new GHA workflow which builds and stores libcloud dev artifact as an GHA artifact.
     new acd2034  Merge pull request #1668 from Kami/upload_dev_artifacts_gha
6d39c34 is described below

commit 6d39c34532cf2138350b05d0eb329a603aa2534a
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Mar 18 23:29:21 2022 +0100

    Add new GHA workflow which builds and stores libcloud dev artifact as an
    GHA artifact.
    
    Those artifacts are primarly meant to be used for testing purposes.
---
 .github/workflows/publish_dev_artifact.yml | 54 ++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/.github/workflows/publish_dev_artifact.yml b/.github/workflows/publish_dev_artifact.yml
new file mode 100644
index 0000000..8acbcac
--- /dev/null
+++ b/.github/workflows/publish_dev_artifact.yml
@@ -0,0 +1,54 @@
+# 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
+
+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@v2
+        with:
+          python-version: 3.8
+
+      - name: Install Dependencies
+        run: |
+          pip install --upgrade pip
+          pip install wheel
+
+      - name: Create Dev Artifacts
+        run: |
+          python setup.py sdist --formats=bztar,zip,gztar
+          python setup.py bdist_wheel
+
+      - name: Store dev artifacts
+        uses: actions/upload-artifact@v3
+        with:
+          name: libcloud-dev-artifacts
+          retention-days: 60
+          path: |
+            dist/*.tar.gz
+            dist/*.whl