Skip to content

Commit

Permalink
Merge branch 'master' into rewrite-skill-bar-section
Browse files Browse the repository at this point in the history
  • Loading branch information
Carpenteri1 committed Apr 3, 2024
2 parents 83f04b4 + 5bb5d9c commit daf4736
Showing 1 changed file with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build And Deploy gh-pages
name: Build And Execute Deploy To gh-pages

on:
push:
Expand Down Expand Up @@ -40,20 +40,15 @@ jobs:

- name: Install dependencies
run: npm ci

- name: Deploy to gh-pages
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git checkout -B gh-pages
# Check if there are changes, --porcelain command checks for changes in the entire repository,
if [ -n "$(git status --porcelain)" ]; then
# Assuming your built files are in /root
git add -A
git commit -m "Update gh-pages"
git push -f origin gh-pages
else
echo "No changes to commit."
fi

- name: Build
run: npm run build -- --configuration production --base-href "https://Carpenteri1.github.io/Portfolio/"

- name: List dist directory
run: ls dist

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: dist/portfolio

0 comments on commit daf4736

Please sign in to comment.