Created
May 10, 2023 23:35
-
-
Save naturalkei/d2185685de9adf82c8387bdc891aa0ae to your computer and use it in GitHub Desktop.
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
# Recommended if you intend to make multiple deployments in quick succession. | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
# This example project is built using npm and outputs the result to the 'build' folder. | |
# Replace with the commands required to build your project, | |
# or remove this step entirely if your site is pre-built. | |
- name: Install and Build 🔧 | |
run: | | |
yarn install | |
yarn build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
# The folder the action should deploy. | |
folder: dist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Migrate only the build folder