Skip to content

Commit

Permalink
feat: Add tag release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Anguiano committed Sep 10, 2024
1 parent c96c11c commit 28e4301
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 14 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-tag-created.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 0 additions & 14 deletions .github/workflows/validate_pr_artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 28e4301

Please sign in to comment.