-
Notifications
You must be signed in to change notification settings - Fork 1.3k
52 lines (41 loc) · 1.29 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
name: github release
on:
pull_request:
types:
- closed
branches:
- main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
create-release:
name: generate docs-website github release notes (optional)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 22.4
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Get last release tag
id: get-last-tag
run: |
echo LAST_RELEASE=$(git describe --tags --abbrev=0) >> $GITHUB_ENV
echo $LAST_RELEASE
- name: Create release timestamp
run: |
echo RELEASE_TIMESTAMP=$(TZ=America/Los_Angeles date '+%m.%d.%Y-%H.%M') >> $GITHUB_ENV
- name: Create new release tag
id: create-new-tag
run: |
echo NEW_TAG=$(echo "release-${{ env.RELEASE_TIMESTAMP }}") >> $GITHUB_ENV
- name: Create Updates and Release
id: create-updates-and-release
run: ./scripts/actions/github-release-notes.mjs
- name: Set Release Version from Tag
run: echo "RELEASE_VERSION=${{ env.NEW_TAG }}" >> $GITHUB_ENV