Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
beyenilmez committed Sep 5, 2024
1 parent 7c6317a commit 7780845
Showing 1 changed file with 11 additions and 30 deletions.
41 changes: 11 additions & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,21 @@
name: Deploy
name: Deploy to GitHub Pages

on:
workflow_dispatch:
push:
branches: ["gh-pages"]
branches:
- "gh-pages"

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest

permissions:
contents: write

strategy:
matrix:
node-version: ["20.9.0"]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install packages
run: npm i

- name: Run npm build
run: npm run build

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
- id: build-publish
uses: bitovi/[email protected]
with:
publish_dir: dist
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
path: build

0 comments on commit 7780845

Please sign in to comment.