This commit is contained in:
2020-08-19 16:52:49 +02:00
parent ea7d407d6c
commit 5d5df21f33
2 changed files with 7 additions and 29 deletions

View File

@@ -1,5 +1,8 @@
name: Build and Deploy
on: [push]
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
@@ -11,12 +14,12 @@ jobs:
- name: Install and Build 🔧 # 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.
run: |
npm install
npm run build
yarn install
yarn build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.5.9
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
FOLDER: ./dist # The folder the action should deploy.