-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (51 loc) · 1.42 KB
/
release.yml
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
51
52
53
54
55
56
name: "Release"
on:
push:
branches:
- beta
- main
jobs:
##
# install
##
install:
name: "Install"
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v4
- name: "🔧 Setup"
uses: ./.github/actions/use-dependencies
##
# release
##
release:
name: "Release"
needs: [install]
permissions:
contents: write # to be able to publish a github release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
runs-on: ubuntu-latest
environment: production
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v4
- name: "📦 Install yq"
uses: ./.github/actions/install-yq
- name: "🔧 Setup"
uses: ./.github/actions/use-dependencies
- name: "📝 Create .env file"
uses: ./.github/actions/create-env-file
with:
provider_id: ${{ vars.PROVIDER_ID }}
- name: "🔖 Release"
env:
# appears on the release commits
GIT_AUTHOR_NAME: kibi-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: kibi-bot
GIT_COMMITTER_EMAIL: [email protected]
# used to push the release commit and create the tags
GITHUB_TOKEN: ${{ secrets.READ_AND_WRITE_REPOS_TOKEN }}
run: yarn semantic-release