Merge pull request #15 from bodhivb/development #9
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
# Deploy GitHub Pages Site. | |
name: Deployment production | |
on: | |
# Triggers the workflow on push event but only for the "production" branch. | |
push: | |
branches: ["production"] | |
jobs: | |
release: | |
name: Build and deploy site | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job. | |
steps: | |
- name: Checkout repository 🛎️ | |
uses: actions/checkout@v3 | |
- name: Install and Build 🔧 | |
run: | | |
npm install | |
npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: dist # The folder the action should deploy. |