File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Docs
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ docs :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - uses : actions/setup-node@v2
11
+ with :
12
+ node-version : ' 12.x'
13
+ registry-url : ' https://npm.pkg.github.com'
14
+ scope : ' @djthorpe'
15
+ - run : npm install
16
+ - run : npm run docs
17
+ - uses : LuisEnMarroquin/gh-pages-publish@v2.4.4
18
+ with :
19
+ FOLDER : dist/doc
20
+ SSHKEY : ${{ secrets.SSH }}
Original file line number Diff line number Diff line change 17
17
- run : npm publish
18
18
env :
19
19
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
+ delete :
21
+ needs : build
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/delete-package-versions@v1
25
+ with :
26
+ package-name : js-framework
27
+ num-old-versions-to-delete : 1
You can’t perform that action at this time.
0 commit comments