This is an automated email from the ASF dual-hosted git repository. mikexue pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh-site.git
commit a09a5a29d953ef245180072fbef82d6bc87c84c2 Author: Xiaoyang Liu <[email protected]> AuthorDate: Wed Jul 21 16:27:50 2021 +0800 Setup GitHub Actions to build and deploy the website Signed-off-by: Xiaoyang Liu <[email protected]> --- .github/workflows/deploy.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..708e07a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,36 @@ +name: Build and Deploy + +on: + pull_request: + branches: [master] + push: + branches: [master] + +# 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/[email protected] + - uses: actions/[email protected] + with: + node-version: "16" + + - name: Build + run: | + npm ci + npm run build + cp .asf.yaml build + + - name: Deploy + uses: peaceiris/[email protected] + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + with: + github_token: ${{ secrets.DEPLOY_TOKEN }} + publish_dir: build + publish_branch: asf-site --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
