Skip to content
Permalink
Browse files
Migrate the 'fetch.ts' script to TypeScript and update .asf.yaml
Signed-off-by: Xiaoyang Liu <siujoeng.lau@gmail.com>
  • Loading branch information
xiaoyang-sde committed Apr 16, 2022
1 parent 56cdaf3 commit ba55e573a84d3348d2d26a62aa0ae07ee30be61c
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 42 deletions.
@@ -1,18 +1,13 @@
github:
features:
# Enable wiki for documentation
wiki: true
# Enable issue management
#issues: true
# Web site staging services:
description: "Apache EventMesh (Incubating) Website"
homepage: https://eventmesh.apache.org

staging:
profile: ~
whoami: asf-site

#jekyll:
# whoami: master
# target: asf-site

publish:
whoami: asf-site

@@ -1,40 +1,32 @@
name: Build and Deploy
name: Build and Publish

on:
pull_request:
branches: [master]
push:
branches: [master]
schedule:
# Run everyday at 9:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07)
- cron: "0 5 * * *"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.2.0
with:
node-version: "16"

- name: Sync Docs
- name: Fetch Documentation
run: |
npm ci
npm run sync
npm run fetch
- name: Build
run: |
npm run build
cp .asf.yaml build
- name: Deploy
- name: Publish
uses: peaceiris/actions-gh-pages@v3.8.0
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:

0 comments on commit ba55e57

Please sign in to comment.