Skip to content

Commit

Permalink
pushing with the dmeo
Browse files Browse the repository at this point in the history
  • Loading branch information
sereneinserenade committed Jun 14, 2022
1 parent 25915e2 commit e1a1189
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Shipp it baby

on:
push:
branches:
- demo

jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Gimme node_modules Cache
uses: actions/cache@v3
id: gimme_cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
if: steps.gimme_cache.outputs.cache-hit == false
run: npm install

- name: Build 🔧
run: npm run build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.0
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.

0 comments on commit e1a1189

Please sign in to comment.