feat: updated versions #59
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
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: 14 | |
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: | | |
yarn install --frozen-lockfile | |
yarn 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 |