Skip to content

Commit

Permalink
Create pages.yml
Browse files Browse the repository at this point in the history
Signed-off-by: BOOM TOKEN <marinachris112@outlook.com>
  • Loading branch information
Boomtokn authored Feb 23, 2025
1 parent 0d11236 commit 4e7cb40
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # Change this if your default branch is different

workflow_dispatch:

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18 # Change based on your project needs

- name: Install Dependencies
run: npm install # Change to 'yarn install' if using Yarn

- name: Build Project
run: npm run build # Change to your build command

- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
path: build # Change this if your output folder is different

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 4e7cb40

Please sign in to comment.