From 9188c4d8b8a8661b4db7796acfad6398e33af00f Mon Sep 17 00:00:00 2001 From: Lyssa <75037904+thecatontheceiling@users.noreply.github.com> Date: Tue, 19 May 2026 18:17:17 +0400 Subject: [PATCH] Enforce LF --- .gitattributes | 1 + .github/workflows/deploy.yml | 124 +++++++++++++++++------------------ 2 files changed, 63 insertions(+), 62 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..94f480d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fd313ef..a31f196 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,62 +1,62 @@ -name: Deploy to GitHub Pages - -on: - workflow_dispatch: - push: - branches: - - main - -jobs: - build: - name: Build Docusaurus - runs-on: ubuntu-latest - - concurrency: - group: github-pages - cancel-in-progress: true - - permissions: - contents: read - - steps: - - uses: actions/checkout@v6.0.2 - with: - fetch-depth: 1 - - - uses: actions/setup-node@v6.4.0 - with: - node-version: 24 - cache: npm - - - name: Install dependencies - run: npm ci - - - name: Build website - run: npm run build - - - name: Upload Build Artifact - uses: actions/upload-pages-artifact@v5.0.0 - with: - path: build - - deploy: - name: Deploy to GitHub Pages - needs: build - - concurrency: - group: github-pages - cancel-in-progress: false # deploy-pages seems to not be fully atomic - - 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@v5.0.0 +name: Deploy to GitHub Pages + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + build: + name: Build Docusaurus + runs-on: ubuntu-latest + + concurrency: + group: github-pages + cancel-in-progress: true + + permissions: + contents: read + + steps: + - uses: actions/checkout@v6.0.2 + with: + fetch-depth: 1 + + - uses: actions/setup-node@v6.4.0 + with: + node-version: 24 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build website + run: npm run build + + - name: Upload Build Artifact + uses: actions/upload-pages-artifact@v5.0.0 + with: + path: build + + deploy: + name: Deploy to GitHub Pages + needs: build + + concurrency: + group: github-pages + cancel-in-progress: false # deploy-pages seems to not be fully atomic + + 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@v5.0.0