Update CD.yml

This commit is contained in:
Rances Acosta 2022-05-14 16:36:25 -04:00 committed by GitHub
parent f57e77e211
commit 52f7c127bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: on:
# Triggers the workflow on push or pull request events but only for the main branch
push: 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: jobs:
# This workflow contains a single job called "build" build:
Deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2
- uses: actions/checkout@v3 - uses: enriikke/gatsby-gh-pages-action@v2
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.3.3
with: with:
branch: main access-token: ${{ secrets.ACCESS_TOKEN }}
folder: . deploy-branch: gh-pages