Skip to content

Commit 4eb3ad1

Browse files
sacha-cscastlara
authored andcommitted
ci: create release pages
1 parent 47815ee commit 4eb3ad1

File tree

4 files changed

+52
-7
lines changed

4 files changed

+52
-7
lines changed

.github/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
authors:
6+
- octocat
7+
categories:
8+
- title: Breaking Changes 🚨
9+
labels:
10+
- breaking
11+
- title: New Features 🎉
12+
labels:
13+
- feature
14+
- title: Fixes 🔧
15+
labels:
16+
- fix
17+
- title: Other Changes
18+
labels:
19+
- "*"

.github/workflows/bumpversion.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This workflow will bump the version of our project once is merged
2-
31
name: Bump version
42

53
on:
@@ -13,15 +11,22 @@ jobs:
1311
runs-on: ubuntu-latest
1412
name: "Bump version and create changelog with commitizen"
1513
steps:
16-
- name: Check out
17-
uses: actions/checkout@v3
14+
- uses: actions/create-github-app-token@v1
15+
id: app-token
16+
with:
17+
app-id: ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }}
18+
private-key: ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }}
19+
- uses: actions/checkout@v4
1820
with:
1921
fetch-depth: 0
20-
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
22+
token: ${{ steps.app-token.outputs.token }}
23+
ref: ${{ github.head_ref }}
24+
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
25+
persist-credentials: false
2126
- id: cz
2227
name: Create bump and changelog
2328
uses: commitizen-tools/commitizen-action@master
2429
with:
25-
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
30+
github_token: ${{ steps.app-token.outputs.token }}
2631
- name: Print Version
27-
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
32+
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on:
2+
pull_request_target:
3+
types: [ opened, edited ]
4+
name: conventional-release-labels
5+
jobs:
6+
label:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: bcoe/conventional-release-labels@v1
10+
with:
11+
type_labels: '{"feat": "feature", "fix": "fix", "breaking": "breaking", "ci": "CI"}'

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ permissions:
1212
contents: write
1313

1414
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Release
20+
uses: softprops/action-gh-release@v2
21+
with:
22+
generate_release_notes: true
23+
token: "${{ secrets.GITHUB_TOKEN }}"
24+
1525
push_to_pypi:
1626
runs-on: ubuntu-latest
1727
steps:

0 commit comments

Comments
 (0)