-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.29 KB
/
release-manual.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
name: Manual Release
on:
workflow_dispatch:
permissions:
id-token: write # Required for OIDC token generation
concurrency:
cancel-in-progress: true
group: release-${{ github.ref_name }}
jobs:
yarn-release:
runs-on: ubuntu-latest
name: Create release
steps:
- name: Get GitHub App Token
id: token
uses: SocialGouv/token-bureau@main
with:
token-bureau-url: https://token-bureau.fabrique.social.gouv.fr
audience: socialgouv
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ steps.token.outputs.token }}
- name: Install dependencies
run: yarn --immutable
- name: Run release
env:
GIT_AUTHOR_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
run: yarn release
- name: Push release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git remote set-url --push origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git push -f --follow-tags origin main