Skip to content

Update jekyll-gh-pages.yml #3

Update jekyll-gh-pages.yml

Update jekyll-gh-pages.yml #3

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm install --global npm@latest
- run: npm install --global yarn
- run: npm install --global gulp-cli
- run: yarn
- run: gulp
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./public
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1