diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..2446dbd30b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + pull_request: + types: [opened, synchronize] + paths-ignore: + - "README.md" + push: + branches: + - main + paths-ignore: + - "README.md" + +jobs: + ci: + name: CI + runs-on: ubuntu-latest + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v2 + + - uses: actions/setup-node@v3 + with: + node-version: "18" + cache: "pnpm" + + - run: pnpm install --frozen-lockfile + + - run: pnpm run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build diff --git a/.github/workflows/ci-build-and-deploy.yml b/tmp/ci-build-and-deploy.yml similarity index 99% rename from .github/workflows/ci-build-and-deploy.yml rename to tmp/ci-build-and-deploy.yml index 2c74884a4c..a413a0cb61 100644 --- a/.github/workflows/ci-build-and-deploy.yml +++ b/tmp/ci-build-and-deploy.yml @@ -29,9 +29,7 @@ jobs: node-version: "18" cache: "pnpm" - run: pnpm install --frozen-lockfile - - run: pnpm run build - - uses: peaceiris/actions-gh-pages@v3 if: github.ref == 'refs/heads/main' with: diff --git a/.github/workflows/ci-pr-label.yml b/tmp/ci-pr-label.yml similarity index 100% rename from .github/workflows/ci-pr-label.yml rename to tmp/ci-pr-label.yml diff --git a/.github/workflows/ci-semantic-pr.yml b/tmp/ci-semantic-pr.yml similarity index 100% rename from .github/workflows/ci-semantic-pr.yml rename to tmp/ci-semantic-pr.yml