-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 898 Bytes
/
release.yml
File metadata and controls
40 lines (32 loc) · 898 Bytes
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
name: release please
on:
workflow_dispatch:
workflow_call:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v5
with:
submodules: true
- name: make scripts executable
run: chmod +x .github/scripts/pack.sh .github/scripts/upload.sh
- name: create release
uses: googleapis/release-please-action@v4
id: release
with:
release-type: python
- name: compress tutorial cases
run: .github/scripts/pack.sh
- name: upload release artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: .github/scripts/upload.sh ${{ steps.release.outputs.tag_name }}