This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
71 lines (61 loc) · 1.61 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: release
on:
push:
tags:
- '*'
jobs:
release:
strategy:
matrix:
platform: [ubuntu-latest]
name: Release
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- name: Checkout
uses: actions/checkout@v2
with:
ref: v2
path: alist-web
persist-credentials: false
fetch-depth: 0
- run: |
cd alist-web
npx changelogithub # or [email protected] if ensure the stable result
cd ..
env:
GITHUB_TOKEN: ${{secrets.MY_TOKEN}}
- name: Checkout web repo
uses: actions/checkout@v2
with:
repository: alist-org/assets
ref: main
path: assets
persist-credentials: false
fetch-depth: 0
- name: Build
run: |
mv alist-web/build.sh .
bash build.sh
- name: Publish npm
run: |
cd alist-web
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc && yarn publish
cd ..
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Upload asserts files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_TOKEN }}
branch: main
directory: assets
repository: alist-org/assets
- name: Release
uses: softprops/action-gh-release@v1
with:
files: release/*