diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 649afc5..5d9beeb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,15 +5,16 @@ on: branches: - master jobs: - build: + build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Use Node.js 10.x - uses: actions/setup-node@v1 - with: - version: 10.x - - name: Build - run: | - npm install - npm run build --if-present + - 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: yarn && yarn build