Update surge links for NIGHTLY-2024-10-31-d9c1cc4 from github action #359
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
env: | |
BUILD_PATH: "." | |
jobs: | |
Build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "*" | |
check-latest: true | |
cache: "pnpm" | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Configure GitHub Pages | |
id: pages | |
uses: actions/configure-pages@v4 | |
- name: Install node_modules | |
run: | | |
pnpm install --frozen-lockfile | |
- name: Astro build | |
run: | | |
pnpm build | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ${{ env.BUILD_PATH }}/dist | |
Deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
needs: Build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |