Skip to content

Commit 5c5f5ad

Browse files
committed
Updated TravisCI
1 parent fa3fc47 commit 5c5f5ad

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
12+
with:
13+
persist-credentials: false
14+
15+
- 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.
16+
run: make
17+
- name: Prepare Deploy folder
18+
run: mkdir deploy && rsync -av --exclude=.git --exclude=.gitignore --exclude=deploy . deploy/
19+
- name: Deploy 🚀
20+
uses: JamesIves/github-pages-deploy-action@3.7.1
21+
with:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
BRANCH: gh-pages # The branch the action should deploy to.
24+
FOLDER: deploy # The folder the action should deploy.

0 commit comments

Comments
 (0)