Skip to content

chore: release master (#318) #679

chore: release master (#318)

chore: release master (#318) #679

on:
push:
branches:
- master
workflow_dispatch: {}
env:
PACKAGE_NAME: LoopStructural
permissions:
contents: write
pull-requests: write
issues: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
path: LoopStructural
outputs:
# true if ANY configured component (LoopStructural, loop_common,
# loop_interpolation) released -- gates the pypi.yml trigger, since a
# solo loop_common/loop_interpolation bump still needs publishing.
release_created: ${{ steps.release.outputs.releases_created }}
# true only when the LoopStructural component itself released --
# gates conda/docs builds, which are LoopStructural-specific and
# shouldn't re-run for a workspace-package-only release.
loopstructural_release_created: ${{ steps.release.outputs['LoopStructural--release_created'] }}
package:
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true'}}
runs-on: ubuntu-latest
steps:
- name: Trigger build for pypi and upload
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GH_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/Loop3d/${{env.PACKAGE_NAME}}/actions/workflows/pypi.yml/dispatches \
-d '{"ref":"master"}'
- name: Trigger build for conda and upload
if: ${{ needs.release-please.outputs.loopstructural_release_created == 'true' }}
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GH_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/Loop3d/${{env.PACKAGE_NAME}}/actions/workflows/conda.yml/dispatches \
-d '{"ref":"master"}'
- name: Trigger build documentation
if: ${{ needs.release-please.outputs.loopstructural_release_created == 'true' }}
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GH_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/Loop3d/${{env.PACKAGE_NAME}}/actions/workflows/documentation.yml/dispatches \
-d '{"ref":"master"}'