Merge pull request #733 from opencadc/release-please-validation #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Release Please Actions | |
name: "CD: Release Please" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
if: github.repository == 'opencadc/science-platform' | |
steps: | |
- | |
name: Create release | |
id: release-please | |
uses: googleapis/[email protected] | |
with: | |
config-file: release-please-config.json | |
manifest-file: .release-please-manifest.json | |
- | |
name: Release Please Outputs | |
if: steps.release-please.outcome == 'success' | |
run: | | |
echo ${{ steps.release-please.outputs }} | |
- | |
name: Dispatch Edge Build | |
# Run this step only if the release-please completes successfully | |
if: steps.release-please.outcome == 'success' | |
uses: peter-evans/[email protected] | |
with: | |
repository: opencadc/science-platform | |
event-type: edge-build | |
token: ${{ secrets.GITHUB_TOKEN }} | |
client-payload: |- | |
{ | |
"releases_created": "${{ steps.release-please.outputs.releases_created }}", | |
"tag_name": "${{ steps.release-please.outputs.tag_name }}", | |
"sha": "${{ steps.release-please.outputs.sha }}" | |
} | |
- | |
name: Dispatch Skaha Release Build | |
# Run this step only if the release-please completes successfully | |
if: ${{ steps.release-please.outputs.releases_created == 'true' }} | |
run: | | |
echo "Release Build currently Disabled" | |
# uses: peter-evans/[email protected] | |
# with: | |
# repository: opencadc/science-platform | |
# event-type: release-build | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# client-payload: |- | |
# { | |
# "releases_created": "${{ steps.release-please.outputs.releases_created }}", | |
# "tag_name": "${{ steps.release-please.outputs.tag_name }}", | |
# "sha": "${{ steps.release-please.outputs.sha }}" | |
# } |