Skip to content

Commit

Permalink
chore: try another deployment method
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Mar 19, 2024
1 parent ed2c286 commit d8f3804
Show file tree
Hide file tree
Showing 3 changed files with 637 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
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
Loading

0 comments on commit d8f3804

Please sign in to comment.