We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a345a6 commit ca8a8b8Copy full SHA for ca8a8b8
.github/workflows/pages.yml
@@ -25,14 +25,22 @@ jobs:
25
${{ runner.os }}-node-
26
- name: Get Tag
27
id: tag
28
- uses: dawidd6/action-get-tag@v1
+ - uses: actions/github-script@v3
29
+ with:
30
+ github-token: ${{secrets.GITHUB_TOKEN}}
31
+ result-encoding: string
32
+ script: |
33
+ const ref = process.env.GITHUB_REF
34
+ if(!ref.startsWith('refs/tags/'))
35
+ return ''
36
+ return ref.replace(/^refs\/tags\//, '')
37
- name: Generate Docs
38
run: |
39
echo $SOURCE_TAG
40
npm ci
41
npm run release_docs
42
env:
- SOURCE_TAG: ${{ steps.tag.outputs.tag }}
43
+ SOURCE_TAG: ${{ steps.tag.outputs.result }}
44
- name: Deploy
45
uses: peaceiris/[email protected]
46
with:
0 commit comments