-
Notifications
You must be signed in to change notification settings - Fork 30
50 lines (44 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
name: Publish template to Github Release
on:
push:
branches:
- main
env:
RELEASE_NAME: "已打包模板下载"
jobs:
deploy:
name: Publish template to Github Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Package
run: python3 ./source-workflow/deploy.py
- uses: sgpublic/[email protected]
with:
# repo: '<owner>/<repoName>' # you can input a another repo here, defaults to current repo
release-drop: true
release-keep-count: -1
release-drop-tag: true
pre-release-drop: true
pre-release-keep-count: -1
pre-release-drop-tag: true
draft-drop: true
draft-drop-count: -1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.RELEASE_NAME }}
artifactErrorsFailBuild: true
replacesArtifacts: true
allowUpdates: true
artifacts: "release/*"
bodyFile: "./source-workflow/body.md"