From 52f7c127bf593dc49e7093a6529cf4a50662e27d Mon Sep 17 00:00:00 2001 From: Rances Acosta <72226427+rancesking@users.noreply.github.com> Date: Sat, 14 May 2022 16:36:25 -0400 Subject: [PATCH] Update CD.yml --- .github/workflows/CD.yml | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 62f53c9..1d68b0c 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -1,31 +1,16 @@ -# This is a basic workflow to help you get started with Actions +name: Gatsby Publish -name: CD - -# Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the main branch push: - branches: [ main ] + branches: + - main - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# 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" - Deploy: - # The type of runner that the job will run on + build: 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/checkout@v3 - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4.3.3 + - uses: actions/checkout@v2 + - uses: enriikke/gatsby-gh-pages-action@v2 with: - branch: main - folder: . - - + access-token: ${{ secrets.ACCESS_TOKEN }} + deploy-branch: gh-pages