This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git
The following commit(s) were added to refs/heads/dev by this push:
new e524a90104 Support deploy to netlify task to deploy worflow (#558)
e524a90104 is described below
commit e524a90104c7e426a649b80a5e19ba9edcda05c3
Author: Casion <[email protected]>
AuthorDate: Wed Nov 2 10:56:46 2022 +0800
Support deploy to netlify task to deploy worflow (#558)
---
.github/workflows/deploy-netlify.yml | 49 ++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/.github/workflows/deploy-netlify.yml
b/.github/workflows/deploy-netlify.yml
new file mode 100644
index 0000000000..326a9b91ab
--- /dev/null
+++ b/.github/workflows/deploy-netlify.yml
@@ -0,0 +1,49 @@
+name: Build and Deploy to Netlify
+
+on:
+ push:
+ branches: [dev,dev-*]
+ pull_request_target:
+ branches: [dev,dev-*]
+
+# 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]
+ with:
+ submodules: recursive
+ - uses: actions/[email protected]
+ with:
+ node-version: 14
+
+
+ - name: install
+ run: |
+ npm install
+ - name: Build
+ run: |
+ npm run build
+ cp .asf.yaml build
+ cp .htaccess build
+ cp doap.rdf build
+
+ - name: Deploy to Netlify
+ uses: nwtgck/[email protected]
+ with:
+ publish-dir: "./build"
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ deploy-message: "${{ github.event.pull_request.title }}, Deploy from
GitHub Actions"
+ enable-pull-request-comment: true
+ enable-commit-comment: true
+ overwrites-pull-request-comment: true
+ env:
+ NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
+ NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
+ timeout-minutes: 10
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]