From d91d09895f9cb3da1848c267d5dac91cea4f326b Mon Sep 17 00:00:00 2001 From: ruanyf Date: Wed, 16 Dec 2020 21:39:58 +0800 Subject: [PATCH] feat: CI change from Travis-CI to GitHub Actions --- .github/workflows/wangdoc.yml | 37 ++++++++++++++++++++++++++++++++++ .travis.yml => .travis.yml.bak | 0 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/wangdoc.yml rename .travis.yml => .travis.yml.bak (100%) diff --git a/.github/workflows/wangdoc.yml b/.github/workflows/wangdoc.yml new file mode 100644 index 0000000..b6d5ea1 --- /dev/null +++ b/.github/workflows/wangdoc.yml @@ -0,0 +1,37 @@ +name: Bash tutorial CI +on: + push: + branches: + - master + +jobs: + page-generator: + name: Generating pages + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + persist-credentials: false + - name: Setup Node.js + uses: actions/setup-node@main + with: + node-version: '14' + - name: Install dependencies + run: npm install + - name: Build pages + run: npm run build + - name: Deploy to website + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GIT_CONFIG_NAME: wangdoc-bot + GIT_CONFIG_EMAIL: yifeng.ruan@gmail.com + REPOSITORY_NAME: wangdoc/website + ACCESS_TOKEN: ${{ secrets.WANGDOC_BOT_TOKEN }} + BASE_BRANCH: master + BRANCH: master # The branch the action should deploy to. + FOLDER: dist # The folder the action should deploy. + TARGET_FOLDER: dist/ssh + CLEAN: true # Automatically remove deleted files from the deploy branch + COMMIT_MESSAGE: update + diff --git a/.travis.yml b/.travis.yml.bak similarity index 100% rename from .travis.yml rename to .travis.yml.bak