File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
pages : write
16
16
uses : ./.github/workflows/reusable-publish-docs.yml
17
17
with :
18
- version : dev
18
+ version : stage
19
19
alias : stage
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Reusable Publish docs
3
3
env :
4
4
BRANCH : main
5
5
ORIGIN : awslabs/aws-lambda-powertools-typescript
6
+ VERSION : " "
6
7
7
8
on :
8
9
workflow_call :
75
76
git config pull.rebase true
76
77
git config remote.origin.url >&- || git remote add origin https://github.com/"$ORIGIN"
77
78
git pull origin "$BRANCH"
79
+ - name : Normalize Version Number
80
+ run : echo "VERSION=$(echo ${{ inputs.version }} | sed 's/v//')" >> $GITHUB_ENV
78
81
- name : Build docs website and API reference
79
82
env :
80
- VERSION : ${{ inputs.version }}
81
83
ALIAS : ${{ inputs.alias }}
82
84
run : |
83
85
rm -rf site
91
93
npm run docs-generateApiDoc
92
94
- name : Release API docs
93
95
uses : peaceiris/actions-gh-pages@bd8c6b06eba6b3d25d72b7a1767993c0aeee42e7 # v3.9.2
94
- env :
95
- VERSION : ${{ inputs.version }}
96
96
with :
97
97
github_token : ${{ secrets.GITHUB_TOKEN }}
98
98
publish_dir : ./api
You can’t perform that action at this time.
0 commit comments