mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix(ci): passing VERSION env variable to next ci steps
This commit is contained in:
parent
bf199731d3
commit
ee38b99376
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -342,9 +342,10 @@ jobs:
|
|||||||
- run: git config user.name ci-bot
|
- run: git config user.name ci-bot
|
||||||
- run: git config user.email ci-bot@example.com
|
- run: git config user.email ci-bot@example.com
|
||||||
- name: Extract major version from package.json
|
- name: Extract major version from package.json
|
||||||
run: VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)').x
|
run: |
|
||||||
|
echo "VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)').x" >> $GITHUB_ENV
|
||||||
- run: git fetch origin gh-pages --depth=1
|
- run: git fetch origin gh-pages --depth=1
|
||||||
- run: cd documentation && mike deploy --push $VERSION
|
- run: cd documentation && mike deploy --push -u ${{ env.VERSION }} latest
|
||||||
|
|
||||||
publish-docs:
|
publish-docs:
|
||||||
# When a new version is tagged, upload the generated typedocs to the appropriate mkdocs <major.x> folder.
|
# When a new version is tagged, upload the generated typedocs to the appropriate mkdocs <major.x> folder.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user