diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ea3ccd..6668aab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,6 @@ on: [push] jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 @@ -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 diff --git a/.gitignore b/.gitignore index 282c96f..4ca8ad0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ node_modules dist -index.html .DS_Store Desktop.ini diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..43c97e7 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false diff --git a/package.json b/package.json index d584de4..7ab639c 100644 --- a/package.json +++ b/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"