-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 960 Bytes
/
release.yml
File metadata and controls
37 lines (29 loc) · 960 Bytes
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
name: Release Automation
on:
repository_dispatch:
types: [ tag-pushed ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 设置Node.js环境
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: 安装依赖
run: npm ci
- name: 执行Release流程
env:
ACCESS_GITHUB_TOKEN: ${{ secrets.ACCESS_GITHUB_TOKEN }}
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
BOT_URL: ${{ secrets.BOT_URL }}
BOT_GROUP_ID: ${{ secrets.BOT_GROUP_ID }}
run: |
node src/index.js release \
"${{ github.event.client_payload.tag_name }}" \
"${{ github.event.client_payload.previous_tag_commit }}" \
"${{ github.event.client_payload.current_tag_commit }}" \
"${{ github.sha }}"