Skip to content

Commit

Permalink
Merge pull request #5 from mozzy11/main
Browse files Browse the repository at this point in the history
try manual deployment
  • Loading branch information
mozzy11 authored May 31, 2024
2 parents bf95be4 + ba91107 commit f96adfc
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,33 @@ jobs:
sudo apt-get install -y git-lfs
git lfs install
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
keep_files: true # Ensures LFS files are preserved
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./output
# keep_files: true # Ensures LFS files are preserved

- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy to GitHub Pages
run: |
# Navigate to the directory to publish, e.g., ./output
cd ./output
# Initialize a new Git repository
git init
git remote add origin https://github.com/${{ github.repository }}.git
git checkout -b gh-pages
# Add and commit all files
git add .
git commit -m "Deploy to GitHub Pages"
# Force push to the gh-pages branch
git push --force origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f96adfc

Please sign in to comment.