From 28e43017d9f157f6fe916c05cdc7b596831fed7b Mon Sep 17 00:00:00 2001 From: Andrew Anguiano Date: Tue, 10 Sep 2024 15:23:14 -0400 Subject: [PATCH] feat: Add tag release workflow --- .github/workflows/release-tag-created.yml | 31 ++++++++++++++++++++++ .github/workflows/validate_pr_artifact.yml | 14 ---------- 2 files changed, 31 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/release-tag-created.yml diff --git a/.github/workflows/release-tag-created.yml b/.github/workflows/release-tag-created.yml new file mode 100644 index 0000000000..37ed078fd2 --- /dev/null +++ b/.github/workflows/release-tag-created.yml @@ -0,0 +1,31 @@ +# This workflow runs when a tag is created with the `v` prefix. +# It runs our validation script, outputs the artifact, creates a Github +# release, and uploads and associates the artifact with the release. + +name: Release tag created +on: + push: + tags: + - 'v*' +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + with: + ref: ${{ github.ref }} + - name: Setup workspace + uses: "./.github/actions/bootstrap" + - name: Validate PR Artifact + uses: "./.github/actions/build-validate-artifact" + with: + command-args: '--output-artifact' + - name: Debugging output + run: ls -la utils/build + - name: Create release + uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 + with: + files: utils/build/* + fail_on_unmatched_files: true + make_latest: true diff --git a/.github/workflows/validate_pr_artifact.yml b/.github/workflows/validate_pr_artifact.yml index d6f0e507b4..4624cd83eb 100644 --- a/.github/workflows/validate_pr_artifact.yml +++ b/.github/workflows/validate_pr_artifact.yml @@ -18,20 +18,6 @@ jobs: uses: "./.github/actions/bootstrap" - name: Validate PR Artifact uses: "./.github/actions/build-validate-artifact" - with: - command-args: '--output-artifact' - #command-args: ${{ github.ref == 'refs/heads/main' && '--output-artifact' || '' }} - name: Debugging output run: ls -la utils/build - #- name: Upload artifact - #if: ${{ github.ref == 'refs/heads/main' }} - #uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 - # with: - # path: utils/build - - name: Create release - uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 - with: - files: utils/build/* - fail_on_unmatched_files: true - make_latest: true