From 8989ac976035d790f6eaad38733273983578a386 Mon Sep 17 00:00:00 2001 From: Elizaveta Karaseva Date: Fri, 22 Sep 2023 16:52:24 +0400 Subject: [PATCH] Combine workflows into one --- .github/workflows/publish-artifact.yml | 23 ----------------------- .github/workflows/tox-testing.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/publish-artifact.yml diff --git a/.github/workflows/publish-artifact.yml b/.github/workflows/publish-artifact.yml deleted file mode 100644 index 2b2e87b..0000000 --- a/.github/workflows/publish-artifact.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Publish Artifact - -on: - push: - branches-ignore: - - 'dependabot**' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: 16 - - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: pioneer-uploader - path: ./dist - if-no-files-found: error \ No newline at end of file diff --git a/.github/workflows/tox-testing.yml b/.github/workflows/tox-testing.yml index eab117e..bd43ec7 100644 --- a/.github/workflows/tox-testing.yml +++ b/.github/workflows/tox-testing.yml @@ -23,3 +23,11 @@ jobs: - name: Run Tox run: tox + + - name: Publish artifact + if: github.event_name == 'push' + uses: actions/upload-artifact@v2 + with: + name: pioneer-uploader + path: ./dist + if-no-files-found: error