diff --git a/.github/workflows/test.yml b/.github/workflows/build.yml similarity index 93% rename from .github/workflows/test.yml rename to .github/workflows/build.yml index bac08e6..ec6c22e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,9 @@ -name: Lint and Build +name: Build on: [push, pull_request, workflow_dispatch] jobs: - test: + build: runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ff11ccc..627ca96 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -5,13 +5,8 @@ on: branches: [main] workflow_dispatch: -permissions: - contents: read - pages: write - id-token: write - concurrency: - group: "pages" + group: "gh-pages" cancel-in-progress: false jobs: @@ -29,14 +24,10 @@ jobs: node-version-file: "package.json" - name: Install dependencies run: npm ci - - name: Lint - run: npm run lint - name: Build run: npm run build - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 with: - path: "public/" - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public