Skip to content

Commit

Permalink
Add action to publish to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
SavageCore committed Sep 20, 2023
1 parent 72a562e commit d2aa1c8
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 870 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ insert_final_newline = true
indent_style = space
indent_size = 4

[{package.json,.travis.yml}]
[{package.json,.travis.yml,.github/workflows/*.yml}]
indent_style = space
indent_size = 2
indent_size = 2
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Deploy
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Setup Node.js 🛠️
uses: actions/setup-node@v3
with:
node-version: 18

- name: Update npm 📦
run: npm install -g npm@latest

- name: Update node-gyp 🔨
run: npm install -g node-gyp@latest

- name: Install and Build 🔧
run: |
npm ci
NODE_OPTIONS=--openssl-legacy-provider npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: public
Loading

0 comments on commit d2aa1c8

Please sign in to comment.