Skip to content

Merge branch 'dev' #132

Merge branch 'dev'

Merge branch 'dev' #132

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-push-to-asf-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.16.1
- name: Build Docs
run: |
cd website-v2
npm install
npm run build
- name: Copy asf yaml
run: |
cp .asf.yaml website-v2/build/
- name: Copy htaccess
run: |
cp .htaccess website-v2/build/
- name: Copy Python docs
run: |
mkdir -p ./website-v2/build/docs/docs/python
cp -r docs-python/* ./website-v2/build/docs/docs/python
- name: Deploy
uses: peaceiris/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: asf-site
PUBLISH_DIR: ./website-v2/build