mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
29 lines
904 B
YAML
29 lines
904 B
YAML
name: Deploy website
|
||
on:
|
||
workflow_dispatch:
|
||
concurrency:
|
||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
||
cancel-in-progress: true
|
||
jobs:
|
||
deploy-website:
|
||
name: Deploy website
|
||
runs-on: ubuntu-latest
|
||
permissions:
|
||
contents: read
|
||
deployments: write
|
||
if: github.repository_owner == 'discordjs'
|
||
steps:
|
||
- name: Checkout repository
|
||
uses: actions/checkout@v3
|
||
|
||
- name: Build & deploy website
|
||
uses: BetaHuhn/deploy-to-vercel-action@643bc80032ba62ca41d1a9aaba7b38b51c2b8646
|
||
with:
|
||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||
VERCEL_SCOPE: 'discordjs'
|
||
GITHUB_DEPLOYMENT_ENV: 'Production – discord-js'
|
||
PRODUCTION: true
|