Skip to content

fix: gh-pages

fix: gh-pages #63

Workflow file for this run

name: gh-page
on:
push:
branches:
- master
defaults:
run:
shell: bash
working-directory: packages/example
jobs:
publish-example-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 20
registry-url: https://registry.npmjs.org/
# Проверяем изменилась ли версия
- name: Set NEED_PUBLISH
run: echo "NEED_PUBLISH=$(./need-publish.sh)" >> $GITHUB_ENV
- name: Install and Build - ⌛&🏗️
if: ${{ env.NEED_PUBLISH }}
run: |
npm i
npm run build
# - name: Deploy 🚀.🚀.🚀
# if: ${{ env.NEED_PUBLISH }}
# uses: JamesIves/github-pages-deploy-action@releases/v3
# with:
# ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# BRANCH: gh-pages # The branch the action should deploy to.
# FOLDER: packages/example/dist # The folder the action should deploy.
# CLEAN: true