Skip to content

Commit

Permalink
add ghpages action
Browse files Browse the repository at this point in the history
  • Loading branch information
hlorenzi committed Feb 3, 2021
1 parent 6533bbc commit 2c5ef12
Show file tree
Hide file tree
Showing 5 changed files with 6,213 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
patreon: hlorenzi
ko_fi: hlorenzi
33 changes: 33 additions & 0 deletions .github/workflows/build_ghpages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build GitHub Pages

on:
push:
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@master

- name: Use Node.js 15.x
uses: actions/setup-node@v1
with:
node-version: 15.x

- run: git branch -D ghpages
continue-on-error: true

- run: git checkout -b ghpages
- run: rm .gitignore
- run: mv .gitignore.ghpages .gitignore
- run: npm ci
- run: npm run build
- run: git config user.name github-actions
- run: git config user.email [email protected]
- run: git add -A
- run: git commit -m "build GitHub Pages"
- run: git push -f origin ghpages
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/node_modules/
/build/
/library/
package-lock.json
/library/
3 changes: 1 addition & 2 deletions .gitignore.ghpages
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/node_modules/
/library/
package-lock.json
/library/
Loading

0 comments on commit 2c5ef12

Please sign in to comment.