From 1fd28d8de6d337b01f4f00465ef5215c1604e5e7 Mon Sep 17 00:00:00 2001 From: Mario Vega Date: Thu, 21 Sep 2023 20:08:24 +0000 Subject: [PATCH] github: consolidate single workflow --- .github/workflows/fixtures.yaml | 19 ++++++++++++++++++- .github/workflows/tags.yaml | 30 ------------------------------ 2 files changed, 18 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/tags.yaml diff --git a/.github/workflows/fixtures.yaml b/.github/workflows/fixtures.yaml index b075f163c2..c20b2b2bfc 100644 --- a/.github/workflows/fixtures.yaml +++ b/.github/workflows/fixtures.yaml @@ -74,4 +74,21 @@ jobs: - uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }} - path: ${{ matrix.name }}.tar.gz \ No newline at end of file + path: ${{ matrix.name }}.tar.gz + release: + runs-on: ubuntu-latest + needs: build + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 + if: startsWith(github.ref, 'refs/tags/') + with: + path: . + - name: Draft Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: './**' + draft: true + generate_release_notes: true + fail_on_unmatched_files: true \ No newline at end of file diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml deleted file mode 100644 index 6bae59a478..0000000000 --- a/.github/workflows/tags.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: Draft Release on Tags - -on: - workflow_run: - workflows: ["Build and Package Fixtures"] - tags: - - 'v*' - types: - - completed - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v3 - with: - path: . - - name: Unzip and delete zip files - shell: bash - run: | - unzip *.zip - rm *.zip - - name: Draft Release - uses: softprops/action-gh-release@v1 - with: - files: './*' - draft: true - generate_release_notes: true - fail_on_unmatched_files: true \ No newline at end of file