Skip to content

Commit 186d20f

Browse files
committed
Fix GitHub Actions workflow for master branch and update deployment instructions
1 parent 22d0b68 commit 186d20f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
# Trigger the workflow every time you push to the `main` branch
4+
# Trigger the workflow every time you push to the `master` branch
55
push:
6-
branches: [ main ]
6+
branches: [ master ]
77
# Allows you to run this workflow manually from the Actions tab on GitHub.
88
workflow_dispatch:
99

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ You might have seen my old home page built about 7 years ago, which is clearly m
5252

5353
## Deployment
5454

55-
This site is configured to deploy automatically to GitHub Pages using GitHub Actions when changes are pushed to the main branch.
55+
This site is configured to deploy automatically to GitHub Pages using GitHub Actions when changes are pushed to the master branch.
5656

5757
### GitHub Pages Setup
5858

5959
1. **Repository Settings**: In your GitHub repository, go to Settings → Pages
60-
2. **Source**: Select "GitHub Actions" as the source
61-
3. **Branch**: The workflow will automatically deploy from the `main` branch
60+
2. **Source**: Select "GitHub Actions" as the source (NOT "Deploy from a branch")
61+
3. **Branch**: The workflow will automatically deploy from the `master` branch
6262
4. **URL**: Your site will be available at `https://yimingpeng.github.io`
6363

6464
### Automatic Deployment
6565

6666
The site will automatically build and deploy when you:
67-
- Push changes to the `main` branch
67+
- Push changes to the `master` branch
6868
- The GitHub Actions workflow (`.github/workflows/deploy.yml`) will handle the build and deployment process
6969

7070
### Manual Deployment

0 commit comments

Comments
 (0)