You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2020/03/15 22:03:45 UTC
[incubator-nuttx-website] branch master updated: Initial checkin
nuttx website github action workflow
This is an automated email from the ASF dual-hosted git repository.
btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-website.git
The following commit(s) were added to refs/heads/master by this push:
new 8ab85a4 Initial checkin nuttx website github action workflow
8ab85a4 is described below
commit 8ab85a4de012f10f48b7d6dab4ee602d401b14de
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Wed Mar 11 20:16:02 2020 +0800
Initial checkin nuttx website github action workflow
Nuttx website github action workflow:
1. Checkout nuttx website
2. Install essential tools
3. Run publish.sh and push asf-site branch
Signed-off-by: liuhaitao <li...@xiaomi.com>
---
.github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..9660766
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,31 @@
+name: CI
+
+on:
+ pull_request:
+ branches: [ master ]
+ types: [closed]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ if: github.event.pull_request.merged == true
+ steps:
+ - uses: actions/checkout@v2
+ - run: |
+ git fetch --prune --unshallow
+
+ - name: Intall tools
+ run: |
+ sudo apt-get -y install rubygems ruby-dev zlib1g-dev
+
+ - name: Run publish.sh
+ run: |
+ export GEM_HOME=$HOME/.gem
+ export PATH=$PATH:$GEM_HOME/bin
+ username=`git log -1 --pretty=format:'%an'`
+ email=`git log -1 --pretty=format:'%ae'`
+ git config --global user.name $username
+ git config --global user.email $email
+ ./publish.sh
+ git push origin asf-site:asf-site