Skip to content

chore: update script #2508

chore: update script

chore: update script #2508

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: npm run build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: npm run lint
# @template-customization-start
deploy_website:
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs: [build, lint]
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: npm run build # It is faster to rebuild than to download/upload the build output.
- uses: actions/upload-pages-artifact@v2
with:
path: "./build"
- uses: actions/deploy-pages@v2
discord:
name: Discord Failure Notification
needs: [build, lint, deploy_website]
if: failure()
runs-on: ubuntu-latest
steps:
- uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: failure
title: ""
# @template-customization-end