Skip to content

Commit

Permalink
make build go to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Jul 5, 2021
1 parent f6b410f commit 6e3fbd6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Expand Up @@ -5,7 +5,6 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -14,6 +13,8 @@ jobs:
- run: npm install
- run: npm run build
- name: commit changes
uses: elstudio/actions-js-build/commit@v3
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
commitMessage: "fixup: [spec] `npm run build`"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
1 change: 0 additions & 1 deletion .gitignore
@@ -1,6 +1,5 @@
node_modules
dist
index.html

.DS_Store
Desktop.ini
Expand Down
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
package-lock=false
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"build": "ecmarkup --verbose spec.html index.html --strict"
"build": "mkdir -p dist; ecmarkup --verbose spec.html dist/index.html --strict"
},
"devDependencies": {
"ecmarkup": "^7.1.0"
Expand Down

0 comments on commit 6e3fbd6

Please sign in to comment.