Skip to content

Merge pull request #701 from stevarino/wiki-1 #1514

Merge pull request #701 from stevarino/wiki-1

Merge pull request #701 from stevarino/wiki-1 #1514

Workflow file for this run

name: Deploy
on:
push:
branches:
- wiki
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy πŸš€
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: package-lock.json
node-version-file: .nvmrc
- name: Install Project πŸ”§
run: npm install
- name: Check Linting πŸ”Ž
run: npm run lint
- name: Check Build πŸ”§
run: npm run build
- name: Deploy πŸš€
uses: JamesIves/[email protected]
with:
branch: generated
folder: docs/.vitepress/dist
- name: Bully someone into fixing it
if: ${{ failure() }}
uses: Bedrock-OSS/[email protected]
with:
webhook: https://canary.discord.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_TOKEN }}
tenorGifApiKey: ${{ secrets.TENOR_GIF_API_KEY }}
failMessage: I blame %author% <:PE_PandaBonk:885395101877166110>
failTitle: 'Wiki deployment failed!'
failAuthor: 'You messed up'
gifFailQuery: fail
successTitle: 'Wiki deployment succeeded!'
successMessage: Thank you, %author%! <:PE_PandaInLove:885395799029194853>
gifSuccessQuery: success
successAuthor: 'You did it'
failed: 'true'
- name: Send a message if previous build failed
if: ${{ success() }}
uses: Bedrock-OSS/[email protected]
with:
webhook: https://canary.discord.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_TOKEN }}
tenorGifApiKey: ${{ secrets.TENOR_GIF_API_KEY }}
failMessage: I blame %author% <:PE_PandaBonk:885395101877166110>
failTitle: 'Wiki deployment failed!'
failAuthor: 'You messed up'
gifFailQuery: fail
successTitle: 'Wiki deployment succeeded!'
successMessage: Thank you, %author%! <:PE_PandaInLove:885395799029194853>
gifSuccessQuery: success
successAuthor: 'You did it'
failed: 'false'