Skip to content

chore: try another deployment method #4

chore: try another deployment method

chore: try another deployment method #4

Workflow file for this run

name: Deploy to CDN
on:
push:
branches: [ 'master' ]
tags: [ 'v*.*.*' ]
jobs:
deploy:
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
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
./node_modules/.bin/gh-pages-multi deploy -v -r https://${{ secrets.GH_TOKEN }}@github.com/data-fair/app-charts.git -b deploy -s dist --no-history -t $MINOR