-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.59 KB
/
release-please.yml
File metadata and controls
50 lines (47 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
on:
push:
branches:
- master
env:
PACKAGE_NAME: loopresources
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: loopresources
outputs:
release_created: ${{ steps.release.outputs.releases_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
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
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"}'