fluence/.github/workflows/release.yml
Anatolios Laskaris aa78e6a078 Initial commit
2023-09-18 14:56:06 +03:00

58 lines
1.5 KiB
YAML

name: "release-please"
on:
push:
branches:
- "main"
jobs:
release-please:
runs-on: ubuntu-latest
concurrency:
group: "release-please"
outputs:
release-created: ${{ steps.release.outputs['release_created'] }}
tag-name: ${{ steps.release.outputs['tag_name'] }}
version: ${{ steps.release.outputs['version'] }}
pr: ${{ steps.release.outputs['pr'] }}
steps:
- name: Run release-please
id: release
uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.FLUENCEBOT_RELEASE_PLEASE_PAT }}
command: manifest
config-file: .github/release-please/config.json
manifest-file: .github/release-please/manifest.json
- name: Show output from release-please
if: steps.release.outputs.releases_created
env:
RELEASE_PLEASE_OUTPUT: ${{ toJSON(steps.release.outputs) }}
run: echo "${RELEASE_PLEASE_OUTPUT}" | jq
stage:
needs: release-please
uses: ./.github/workflows/deploy.yml
with:
env: stage
testnet:
if: needs.release-please.outputs.release-created
needs: release-please
uses: ./.github/workflows/deploy.yml
with:
env: testnet
ref: ${{ needs.release-please.outputs.tag_name }}
kras:
if: needs.release-please.outputs.release-created
needs: release-please
uses: ./.github/workflows/deploy.yml
with:
env: kras
ref: ${{ needs.release-please.outputs.tag_name }}