This repository automates the process of downloading a website and deploying it to Permaweb.
- Clone this repository
- Install dependencies:
npm install
- Set up the following secrets in your GitHub repository:
DEPLOY_ANT_PROCESS: Your Permaweb ANT process key
- Go to the "Actions" tab in your GitHub repository
- Click on "Download and Deploy Site"
- Click "Run workflow"
- Enter the URL of the site you want to download
- Click "Run workflow"
The action will:
- Download the specified site
- Build the project
- Deploy it to Permaweb using your configured ANT process
To test locally:
- Set the SITE_URL environment variable
- Run
npm run downloadto download the site - Run
npm run deployto deploy to Permaweb
npm run download: Downloads the site specified in SITE_URLnpm run build: Builds the projectnpm run deploy: Deploys the built site to Permaweb