From fa5f3e68f2690b2f40390478b175a43595750ed2 Mon Sep 17 00:00:00 2001 From: Sudhanshu Gautam Date: Fri, 27 Sep 2019 01:22:31 +0530 Subject: [PATCH] Setup CD using Github Actions Now auto deployment of latest commits on master will take place. --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c50b901 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: CD using Github Actions + +on: + push: + branches: + - master +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Build and Deploy + uses: JamesIves/github-pages-deploy-action@master + env: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: build + BUILD_SCRIPT: npm install && npm run build