-
Notifications
You must be signed in to change notification settings - Fork 51
52 lines (49 loc) · 1.47 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: publish cookbook
on:
push:
branches:
- "main"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: ⎔ Setup Node
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: 📥 Download deps
run: |
cd docs
yarn
- name: 🛠 Build Docs
id: build_artifacts
run: |
cd docs
yarn build
echo "artifacts_output_dir=src/.vuepress/dist" >> $GITHUB_OUTPUT
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
SPECIAL_ACCESS_TOKEN: ${{ secrets.SPECIAL_ACCESS_TOKEN }}
- name: 💾 Publish to Arweave
id: publish_artifacts
run: |
cd docs
npx permaweb-deploy \
--ant-process=${ANT_PROCESS} \
--undername=${UNDERNAME} \
--deploy-folder=${ARTIFACTS_OUTPUT_DIR}
env:
DEPLOY_KEY: ${{ secrets.COOKBOOK }}
ARTIFACTS_OUTPUT_DIR: ${{ steps.build_artifacts.outputs.artifacts_output_dir }}
ANT_PROCESS: tP8uMeEQR-zodP_jHRyLJf1K7TZtACUsBrn8wdYlGuc
UNDERNAME: "@"
- name: Discord Notification
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: "The project {{ EVENT_PAYLOAD.repository.full_name }} has been deployed."