Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaleidosium authored Feb 26, 2024
1 parent 91ee725 commit c894204
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: Zola on GitHub Pages

name: Deploy to GitHub Pages
on:
push:
branches:
push:
branches:
- main

jobs:
build:
name: Publish site
runs-on: ubuntu-latest
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/[email protected]
- name: Build and deploy
uses: shalzz/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@master

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts

- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: public # The folder the action should deploy.

0 comments on commit c894204

Please sign in to comment.