-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: try another deployment method
- Loading branch information
Showing
3 changed files
with
637 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Publish documentation | ||
|
||
on: | ||
push: | ||
branches: [ 'master' ] | ||
tags: [ 'v*.*.*' ] | ||
|
||
jobs: | ||
publish-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo $GITHUB_REF | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '21' | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: | | ||
export MINOR=$(./node_modules/.bin/semver-extract --minor --branch $GITHUB_REF) | ||
echo "MINOR=$MINOR" | ||
export PUBLIC_URL=https://cdn.jsdelivr.net/gh/data-fair/app-charts@deploy/$MINOR | ||
echo "PUBLIC_URL=$PUBLIC_URL" | ||
npm run build | ||
./node_modules/.bin/gh-pages-multi deploy -v -b deploy -s dist --no-history -t $MINOR | ||
Oops, something went wrong.