Merge pull request #64 from shinybrar/63-env-no-longer-optional-in-se… #100
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
name: Continous Deployment | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Create release | |
id: release-please | |
uses: googleapis/[email protected] | |
with: | |
release-type: python | |
- | |
name: Dispatch Edge Build | |
if: always() | |
uses: peter-evans/[email protected] | |
with: | |
repository: shinybrar/skaha | |
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 Release Build | |
if: ${{ steps.release-please.outputs.release_created }} | |
uses: peter-evans/[email protected] | |
with: | |
repository: shinybrar/skaha | |
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 }}" | |
} | |
- | |
name: Dispatch PYPI Release | |
if: ${{ steps.release-please.outputs.release_created }} | |
uses: peter-evans/[email protected] | |
with: | |
repository: shinybrar/skaha | |
event-type: pypi-release | |
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 }}" | |
} |