Merge pull request #281 from twilson63/twilson63-patch-1 #463
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: publish cookbook | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- run: cd docs && yarn | |
- run: cd docs && yarn deploy | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
SPECIAL_ACCESS_TOKEN: ${{ secrets.SPECIAL_ACCESS_TOKEN }} | |
COOKBOOK: ${{ secrets.COOKBOOK }} | |
- uses: Ilshidur/action-discord@master | |
name: Discord Notification | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
with: | |
args: "The project {{ EVENT_PAYLOAD.repository.full_name }} has been deployed." |