Skip to content

Commit

Permalink
feat: enabled permaweb deploy on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobinstein committed Aug 7, 2024
1 parent b1f8bc7 commit fdb7a86
Show file tree
Hide file tree
Showing 4 changed files with 1,977 additions and 33 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ArweaveDeploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Arweave Deploy

on:
push:
branches:
- main

jobs:
Arweave-build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment for docs build
uses: actions/setup-node@v2
with:
node-version: "20"

- name: Install Yarn
run: npm install -g yarn

- name: Build Docs Portal
run: |
cd docs
yarn install --frozen-lockfile
yarn build
cd ..
- name: Run deployment script
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_ANT_PROCESS_ID: ${{ secrets.DEPLOY_ANT_PROCESS_ID}}
run: |
cd docs
yarn deploy
1 change: 1 addition & 0 deletions docs/.yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-engines true
4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"repository": "/pub-docs/",
"scripts": {
"dev": "vuepress dev src",
"build": "vuepress build src"
"build": "vuepress build src",
"deploy": "permaweb-deploy --deploy-folder ./src/.vuepress/dist --ant-process $DEPLOY_ANT_PROCESS_ID --undername ardrive"
},
"license": "MIT",
"devDependencies": {
Expand All @@ -21,6 +22,7 @@
"vuepress-plugin-fulltext-search": "^2.2.1"
},
"dependencies": {
"permaweb-deploy": "^1.1.7",
"vuex": "^4.1.0"
}
}
Loading

0 comments on commit fdb7a86

Please sign in to comment.