From 2c29e1e55d61ddf12bded3e410c9f28dc38bce2d Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Mon, 9 Oct 2023 15:12:30 +0300 Subject: [PATCH] Create update.yml --- .github/workflows/update.yml | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 000000000..3f3a09438 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,52 @@ +name: Deploy site to Pages +on: + push: + branches: [$default-branch] + workflow_dispatch: +permissions: + contents: read + pages: write + id-token: write +concurrency: + group: "pages" + cancel-in-progress: false +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + docs + .svelte-kit + key: ${{ runner.os }}-svelte-build-${{ hashFiles('docs') }} + restore-keys: | + ${{ runner.os }}-svelte-build- + - name: Install dependencies + run: npm install + - name: Build /docs + run: npm run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./docs + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 \ No newline at end of file