mirror of https://github.com/garritfra/garrit.xyz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
796 B
31 lines
796 B
on: |
|
push: |
|
branches: |
|
- master |
|
name: Deploy to Github Pages |
|
jobs: |
|
deploy: |
|
name: deploy |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@master |
|
name: Checkout |
|
- name: Cache Node Modules |
|
id: cache-node-modules |
|
uses: actions/cache@v2.1.7 |
|
with: |
|
path: node_modules |
|
key: node-modules-${{ hashFiles('package-lock.json') }} |
|
- name: Install Dependencies |
|
if: steps.cache.outputs.cache-hit != 'true' |
|
run: npm install |
|
- name: Build |
|
run: | |
|
npm run build:static |
|
touch out/.nojekyll |
|
echo "garrit.xyz" > CNAME |
|
- name: Deploy |
|
uses: JamesIves/github-pages-deploy-action@v4.2.2 |
|
with: |
|
branch: gh-pages |
|
folder: out
|
|
|