Skip to content

Commit 0a345a6

Browse files
committed
Properly handle tags for pages
1 parent d3c8397 commit 0a345a6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/pages.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,23 @@ jobs:
1616
uses: actions/setup-node@v1
1717
with:
1818
node-version: '10.14'
19+
- name: Cache Node.js modules
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.npm
23+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
24+
restore-keys: |
25+
${{ runner.os }}-node-
1926
- name: Get Tag
2027
id: tag
21-
run: |
22-
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
28+
uses: dawidd6/action-get-tag@v1
2329
- name: Generate Docs
2430
run: |
2531
echo $SOURCE_TAG
32+
npm ci
2633
npm run release_docs
2734
env:
28-
SOURCE_TAG: ${{ steps.tag.outputs.SOURCE_TAG }}
35+
SOURCE_TAG: ${{ steps.tag.outputs.tag }}
2936
- name: Deploy
3037
uses: peaceiris/[email protected]
3138
with:

0 commit comments

Comments
 (0)