Skip to content

Instantly share code, notes, and snippets.

@naturalkei
Created May 10, 2023 23:35
Show Gist options
  • Save naturalkei/d2185685de9adf82c8387bdc891aa0ae to your computer and use it in GitHub Desktop.
Save naturalkei/d2185685de9adf82c8387bdc891aa0ae to your computer and use it in GitHub Desktop.
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
@naturalkei
Copy link
Author

Migrate only the build folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment