Skip to content

Commit

Permalink
chore: when releasing from main via GHA (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier authored Jan 16, 2025
1 parent 1a902c0 commit 33fa03d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ jobs:
if: github.event.inputs.release == 'patch'
- run: ./gradlew release -Prelease.versionIncrementer=incrementPrerelease -Prelease.versionIncrementer.initialPreReleaseIfNotOnPrerelease=-rc1 -Prelease.ignoreChanges=true
if: github.event.inputs.release == 'pre-release'

publish-release:
needs: create-tag
uses: ./.github/workflows/release.yaml
secrets: inherit
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Publish SDK

on:
# either if we push a tag manually or if it's called from create-release workflow
push:
tags:
- 'v*'
workflow_run:
workflows: ["Create a new release tag"]
types:
- completed
workflow_call:

jobs:
deploy-release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v4
name: Checkout code
Expand Down

0 comments on commit 33fa03d

Please sign in to comment.