Skip to content

Commit

Permalink
Update and rename node.js.yml to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol authored Oct 14, 2021
1 parent 80f3805 commit 1eabb81
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 37 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1

- 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
bash ./create_cname.sh
echo 'CNAME created'
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: dist
clean: true

37 changes: 0 additions & 37 deletions .github/workflows/node.js.yml

This file was deleted.

0 comments on commit 1eabb81

Please sign in to comment.