Skip to content

Commit 6550eed

Browse files
authored
build: add GitHub Action for release-please (#2)
1 parent 5c85f6b commit 6550eed

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
#
3+
# automated release numbering using release-please
4+
# - https://github.com/googleapis/release-please
5+
# - https://github.com/googleapis/release-please-action
6+
#
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
- master
13+
14+
# verify "Actions" settings:
15+
# https://github.com/feeph/libi2c-python/settings/actions
16+
# - [x] "Allow GitHub Actions to create and approve pull requests"
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
21+
name: release-please
22+
23+
jobs:
24+
release-please:
25+
runs-on: ubuntu-latest
26+
environment: release-please
27+
steps:
28+
- name: Create a release
29+
uses: googleapis/release-please-action@v4
30+
with:
31+
# do NOT use 'secrets.GITHUB_TOKEN':
32+
# ---------------------------------------------------------------
33+
# When you use the repository's GITHUB_TOKEN to perform tasks,
34+
# events triggered by the GITHUB_TOKEN will not create a new
35+
# workflow run. This prevents you from accidentally creating
36+
# recursive workflow runs.
37+
# ---------------------------------------------------------------
38+
# required permissions:
39+
# - Contents: Read and write
40+
# - Pull requests: Read and write
41+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
42+
target-branch: ${{ github.ref_name }}

0 commit comments

Comments
 (0)