change the base url #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release from main to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: dist | |
branch: gh-pages | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
ref: gh-pages | |
- name: Make 404.html file from index.html | |
run: cp -f ./index.html ./404.html | |
- name: Commit files | |
run: | | |
git config --local user.email ${{ github.event.sender.id }}+${{ github.event.sender.login }}@users.noreply.github.com | |
git config --local user.name "GitHub Action" | |
git add ./404.html | |
git commit -m "Auto add 404.html" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages |