Skip to content

Commit

Permalink
integrate workflow into release process
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Oct 31, 2023
1 parent e6cd153 commit aada688
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Checks
on:
workflow_call:
workflow_dispatch:
# pull_request:
# types: [ opened, synchronize, unlabeled ]
# paths-ignore:
# - '.github/ISSUE_TEMPLATE/**'
# - '.husky/**'
# - '.vscode/**'
# - 'deploy/**'
# - 'docs/**'
# - 'public/**'
# - 'stub/**'
# - 'tools/**'
pull_request:
types: [ opened, synchronize, unlabeled ]
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.husky/**'
- '.vscode/**'
- 'deploy/**'
- 'docs/**'
- 'public/**'
- 'stub/**'
- 'tools/**'

# concurrency:
# group: ${{ github.workflow }}__${{ github.job }}__${{ github.ref }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ jobs:
label_name: 'pre-release'
label_description: Tasks in pre-release right now
secrets: inherit

upload_source_maps:
name: Upload source maps to Sentry
uses: './.github/workflows/upload-source-maps.yml'
secrets: inherit
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,9 @@ jobs:
name: Publish Docker image
uses: './.github/workflows/publish-image.yml'
secrets: inherit
upload_source_maps:
name: Upload source maps to Sentry
needs: publish_image
uses: './.github/workflows/upload-source-maps.yml'
secrets: inherit
6 changes: 2 additions & 4 deletions .github/workflows/upload-source-maps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Upload source maps to Sentry
on:
workflow_call:
workflow_dispatch:
pull_request:
types: [ opened, synchronize ]

env:
NEXT_PUBLIC_GIT_TAG: v1.16.0
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
Expand All @@ -16,6 +13,7 @@ jobs:
build_and_upload:
name: Build app with source maps and upload to Sentry
runs-on: ubuntu-latest
if: ${{ github.ref_type == 'tag' }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -48,4 +46,4 @@ jobs:
run: yarn sentry-cli sourcemaps inject ./.next

- name: Upload source maps to Sentry
run: yarn sentry-cli sourcemaps upload --release=${{ env.NEXT_PUBLIC_GIT_TAG }} --validate ./.next
run: yarn sentry-cli sourcemaps upload --release=${{ github.ref_name }} --validate ./.next

0 comments on commit aada688

Please sign in to comment.