小修改 #21
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: main to gh-pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
m2p: | |
permissions: | |
contents: write | |
actions: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Merge and Push | |
run: | | |
git config user.name "Mdr-C-Tutorial" | |
git config user.email "[email protected]" | |
git checkout gh-pages | |
git merge main -m "Merge branch 'main' into gh-pages" | |
git push | |