This repository was archived by the owner on Apr 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-11
lines changed
Expand file tree Collapse file tree 2 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 11name : Deploy Docs
22on :
3- push :
4- branches :
5- - main
3+ release :
4+ types :
5+ - created
6+
67jobs :
7- docs :
8- name : Deploy Docs
8+ deploy :
9+ name : Deploy
910 runs-on : ubuntu-latest
1011 steps :
1112 - name : Checkout repository
1213 uses : actions/checkout@v2
1314
14- - name : Install Node v15
15+ - name : Install Node
1516 uses : actions/setup-node@v1
1617 with :
1718 node-version : 15
@@ -28,12 +29,23 @@ jobs:
2829 - name : Install deps
2930 run : pnpm i
3031
31- - name : Build the code
32- run : pnpm run build
32+ - name : Set up Docker Buildx
33+ uses : docker/setup-buildx-action@v1
34+
35+ - name : Login to DockerHub
36+ uses : docker/login-action@v1
37+ with :
38+ username : ${{ secrets.DOCKERHUB_USERNAME }}
39+ password : ${{ secrets.DOCKERHUB_TOKEN }}
40+
41+ - name : Publish to NPM & Docker
42+ run : pnpm run publish
43+ env :
44+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
3345
34- - name : Build the docs
46+ - name : Build documentation
3547 run : pnpm run docs
36-
48+
3749 - name : Place CNAME
3850 run : echo "cordis.js.org" >| ./doc/CNAME
3951
Original file line number Diff line number Diff line change 88 - name : Checkout repository
99 uses : actions/checkout@v2
1010
11- - name : Install Node v15
11+ - name : Install Node
1212 uses : actions/setup-node@v1
1313 with :
1414 node-version : 15
You can’t perform that action at this time.
0 commit comments