Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiaedv committed Oct 14, 2024
1 parent cc3c405 commit f755f39
Show file tree
Hide file tree
Showing 4 changed files with 558 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pagedeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
push:
branches: [master]
workflow_dispatch:

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Build the project
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: gh-pages
Loading

0 comments on commit f755f39

Please sign in to comment.