Update CD.yml
This commit is contained in:
parent
f57e77e211
commit
52f7c127bf
1 changed files with 8 additions and 23 deletions
31
.github/workflows/CD.yml
vendored
31
.github/workflows/CD.yml
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue