egorkonovalov is deploying the application #76
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: Github Pages | |
run-name: ${{ github.actor }} is deploying the application | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build-deploy: | |
environment: github-pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set-up Node & Checkout | |
uses: actions/checkout@v3 | |
- name: Set-up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "yarn" | |
- name: Install dependencies | |
run: | | |
npm install yarn@latest | |
yarn install | |
- name: Build | |
env: | |
VITE_API_BASE_URL: ${{ vars.VITE_API_BASE_URL }} | |
run: yarn build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_branch: gh-pages | |
publish_dir: build | |
deploy_key: ${{ secrets.DEPLOY_SECRET }} |