Skip to content

Commit dc9a4ee

Browse files
authored
Create release-please.yml
1 parent a31ba14 commit dc9a4ee

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
on:
3+
push:
4+
branches:
5+
- main
6+
env:
7+
PACKAGE_NAME: plugin_loopstructural
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
name: release-please
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: GoogleCloudPlatform/release-please-action@v4
18+
id: release
19+
with:
20+
path: LoopStructural
21+
22+
outputs:
23+
release_created: ${{ steps.release.outputs.release_created }}
24+
package:
25+
needs: release-please
26+
if: ${{ needs.release-please.outputs.release_created }}
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Trigger build for pypi and upload
30+
run: |
31+
curl -X POST \
32+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
33+
-H "Accept: application/vnd.github.v3+json" \
34+
https://api.github.com/repos/Loop3d/${{env.PACKAGE_NAME}}/actions/workflows/release.yml/dispatches \
35+
-d '{"ref":"master"}'
36+

0 commit comments

Comments
 (0)