Skip to content

Commit 3e2ad2a

Browse files
committedJul 17, 2022
chore: update deploy.yml
2 parents 3288b1c + 5fa9aaf commit 3e2ad2a

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed
 

‎.github/workflows/deploy.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,29 @@ jobs:
2626
steps:
2727
- name: print inputs
2828
run: |
29-
echo "Log level: ${{ github.event.inputs.weekly_index }}"
30-
29+
echo "Weekly Index: ${{ github.event.inputs.weekly_index }}"
30+
31+
- name: Git Config
32+
run: |
33+
git config --global user.email moyuweekly@github.com
34+
git config --global user.name moyuweekly
3135
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3236
- uses: actions/checkout@v3
37+
38+
# - name: Clone Repo
39+
# uses: GuillaumeFalourd/clone-github-repo-action@v2
40+
# with:
41+
# owner: 'zhangferry'
42+
# repository: 'GithubPage'
43+
# access-token: ${{ secrets.ACCESS_TOKEN }}
3344

3445
# Runs a single command using the runners shell
3546
- name: Run a one-line script
3647
run: ./Script/ci_run.sh
3748
shell: bash
49+
50+
# - name: Push Repo
51+
# uses: actions-js/push@master
52+
# with:
53+
# github_token: ${{ secrets.ACCESS_TOKEN }}
3854

‎Script/deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ def copy_file_to_repo(self, source_path, target_folder):
124124

125125
def run_with(self, blog_repo):
126126
article_path = self.get_weekly_article_path()
127-
print(article_path)
127+
# print(article_path)
128128
blog_repo.clone_or_update_repo()
129129
target_folder = f"{blog_repo.repo_path}/Content/posts"
130-
print(target_folder)
130+
# print(target_folder)
131131
head_str, target_path = self.copy_file_to_repo(source_path=article_path, target_folder=target_folder)
132132
blog_repo.modify_file(head_str, target_path)
133133
blog_repo.push()

0 commit comments

Comments
 (0)