From 9ce2bfe8717fa6ab4d0f919930929f67f508e0e2 Mon Sep 17 00:00:00 2001 From: mbushkov Date: Thu, 13 Jun 2024 11:10:19 +0200 Subject: [PATCH] Added definitions for all other GRR packages. --- .github/workflows/publish-pypi.yml | 177 ++++++++++++++++++++++++++++- 1 file changed, 176 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 84af918fe..53d7ab038 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -26,13 +26,150 @@ jobs: python grr/test/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" python colab/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" python api_client/python/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" + - name: Upload grr-response-proto + uses: actions/upload-artifact@v4 + with: + name: grr-response-proto + path: /tmp/sdists/grr-response-proto-[0-9]*.zip + retention-days: 3 + - name: Upload grr-response-core + uses: actions/upload-artifact@v4 + with: + name: grr-response-core + path: /tmp/sdists/grr-response-core-[0-9]*.zip + retention-days: 3 + - name: Upload grr-response-client + uses: actions/upload-artifact@v4 + with: + name: grr-response-client + path: /tmp/sdists/grr-response-client-[0-9]*.zip + retention-days: 3 + - name: Upload grr-response-client-builder + uses: actions/upload-artifact@v4 + with: + name: grr-response-client-builder + path: /tmp/sdists/grr-response-client-builder-[0-9]*.zip + retention-days: 3 + - name: Upload grr-response-server + uses: actions/upload-artifact@v4 + with: + name: grr-response-server + path: /tmp/sdists/grr-response-server-[0-9]*.zip + retention-days: 3 - name: Upload grr-response-test uses: actions/upload-artifact@v4 with: name: grr-response-test - path: /tmp/sdists/grr-response-test*.zip + path: /tmp/sdists/grr-response-test-[0-9]*.zip retention-days: 3 + - name: Upload grr-colab + uses: actions/upload-artifact@v4 + with: + name: grr-colab + path: /tmp/sdists/grr-colab-[0-9]*.zip + retention-days: 3 + - name: Upload grr-api-client + uses: actions/upload-artifact@v4 + with: + name: grr-api-client + path: /tmp/sdists/grr-api-client-[0-9]*.zip + retention-days: 3 + publish-to-pypi-grr-response-proto: + name: Publish grr-response-proto to PyPI + needs: + - build-pypi-packages + runs-on: ubuntu-22.04 + environment: + name: pypi + url: https://pypi.org/p/grr-response-proto + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + steps: + - name: Download the artifact + uses: actions/download-artifact@v4 + with: + name: grr-response-proto + path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + + publish-to-pypi-grr-response-core: + name: Publish grr-response-test to PyPI + needs: + - build-pypi-packages + runs-on: ubuntu-22.04 + environment: + name: pypi + url: https://pypi.org/p/grr-response-core + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + steps: + - name: Download the artifact + uses: actions/download-artifact@v4 + with: + name: grr-response-core + path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + + publish-to-pypi-grr-response-client: + name: Publish grr-response-client to PyPI + needs: + - build-pypi-packages + runs-on: ubuntu-22.04 + environment: + name: pypi + url: https://pypi.org/p/grr-response-client + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + steps: + - name: Download the artifact + uses: actions/download-artifact@v4 + with: + name: grr-response-client + path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + + publish-to-pypi-grr-response-client-builder: + name: Publish grr-response-test to PyPI + needs: + - build-pypi-packages + runs-on: ubuntu-22.04 + environment: + name: pypi + url: https://pypi.org/p/grr-response-client-builder + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + steps: + - name: Download the artifact + uses: actions/download-artifact@v4 + with: + name: grr-response-client-builder + path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + + publish-to-pypi-grr-response-server: + name: Publish grr-response-test to PyPI + needs: + - build-pypi-packages + runs-on: ubuntu-22.04 + environment: + name: pypi + url: https://pypi.org/p/grr-response-server + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + steps: + - name: Download the artifact + uses: actions/download-artifact@v4 + with: + name: grr-response-server + path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + publish-to-pypi-grr-response-test: name: Publish grr-response-test to PyPI needs: @@ -51,3 +188,41 @@ jobs: path: dist/ - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + + publish-to-pypi-grr-colab: + name: Publish grr-colab to PyPI + needs: + - build-pypi-packages + runs-on: ubuntu-22.04 + environment: + name: pypi + url: https://pypi.org/p/grr-colab + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + steps: + - name: Download the artifact + uses: actions/download-artifact@v4 + with: + name: grr-colab + path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + + publish-to-pypi-grr-api-client: + name: Publish grr-api-client to PyPI + needs: + - build-pypi-packages + runs-on: ubuntu-22.04 + environment: + name: pypi + url: https://pypi.org/p/grr-api-client + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + steps: + - name: Download the artifact + uses: actions/download-artifact@v4 + with: + name: grr-api-client + path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1