Skip to content

Commit

Permalink
git actions fix for pages, new actions
Browse files Browse the repository at this point in the history
  • Loading branch information
FranklinBarto committed Nov 21, 2024
1 parent 0160fc2 commit cabe6c2
Showing 1 changed file with 2 additions and 47 deletions.
49 changes: 2 additions & 47 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy React App to GitHub Pages
on:
push:
branches:
- main # Change to your main branch if needed
- master

jobs:
deploy:
Expand All @@ -28,49 +28,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

# name: Deploy to GitHub Pages

# on:
# push:
# branches:
# - master # Change to your branch name if different

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

# jobs:
# build-and-deploy:
# runs-on: ubuntu-latest

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

# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '16'

# - name: Install dependencies
# run: npm ci

# - name: Build
# run: npm run build

# - name: Setup Pages
# uses: actions/configure-pages@v3

# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# path: './build'

# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2
# environment:
# name: github-pages
publish_dir: ./build

0 comments on commit cabe6c2

Please sign in to comment.