diff --git a/.github/workflows/npm-grunt.yml b/.github/workflows/npm-grunt.yml index fe7f418..9d59e53 100644 --- a/.github/workflows/npm-grunt.yml +++ b/.github/workflows/npm-grunt.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: 20 + node-version: [20] steps: - uses: actions/checkout@v4 @@ -22,13 +22,13 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Build - run: | - npm install - npm run build:demo - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + - name: Build and Deploy + uses: JamesIves/github-pages-deploy-action@master + env: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: build + BUILD_SCRIPT: npm install && npm run build