Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,19 @@ jobs:
token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

# Minor and major releases (x.y.0) roll to squishmark.dev automatically;
# patch releases wait for the content repo's manual deploy button.
deploy-site:
needs: release-please
if: needs.release-please.outputs.release_created == 'true' && endsWith(needs.release-please.outputs.version, '.0')
runs-on: ubuntu-latest
steps:
- name: Dispatch site deploy
env:
GH_TOKEN: ${{ secrets.CONTENT_DISPATCH_TOKEN }}
VERSION: ${{ needs.release-please.outputs.version }}
run: |
gh api -X POST repos/xeek-dev/squishmark-content/dispatches \
-f event_type=engine-release \
-f "client_payload[version]=${VERSION}"