diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..f136f6096 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,45 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build: + name: Build Docusaurus + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: yarn + - name: Install dependencies + run: yarn install --immutable + - name: Build docusaurus + run: yarn build + + - name: Upload Build Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: build + + deploy: + name: Deploy to GitHub Pages + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + +concurrency: + group: "pages" + cancel-in-progress: false diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml new file mode 100644 index 000000000..7b384505d --- /dev/null +++ b/.github/workflows/test-deploy.yml @@ -0,0 +1,26 @@ +name: Test deployment + +on: + pull_request: + branches: + - main + +jobs: + test-deploy: + name: Test deployment + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: yarn + + - name: Install dependencies + run: yarn install --immutable + - name: Test build website + run: yarn build + +concurrency: + group: "pages" + cancel-in-progress: true diff --git a/package.json b/package.json index 2b77378b5..4e9a4dd1d 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "repository": "https://github.com/unchain-dev/UNCHAIN-projects.git", "author": "SHØ (https://akxra.art/)", "scripts": { - "textlint:check": "textlint docs/*/ja/**/*.md --ignore-path .textlintignore", - "textlint:fix": "textlint --fix docs/*/ja/**/*.md --ignore-path .textlintignore", + "textlint:check": "textlint docs/**/*.md --ignore-path .textlintignore", + "textlint:fix": "textlint --fix docs/**/*.md --ignore-path .textlintignore", "prepare": "simple-git-hooks", "docusaurus": "docusaurus", "start": "docusaurus start", diff --git a/public/.nojekyll b/public/.nojekyll new file mode 100644 index 000000000..e69de29bb