Merge remote-tracking branch 'origin/dev' #123
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: 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 |