Skip to content

Commit

Permalink
Update deploy_aliyun.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abnerlee authored Mar 26, 2024
1 parent 701d94f commit 2b2b221
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy_aliyun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 1
fetch-depth: 0

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
Expand All @@ -36,14 +36,12 @@ jobs:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa_ec2
# SETUP GIT
rm -rf .git
git init -b master
git config --global user.email "[email protected]"
git config --global user.name "Typora"
git remote add a [email protected]:theme
sed -i 's/rubygems.org/gems.ruby-china.com/g' Gemfile
git add .
git commit -m "update Gemfile"
git commit -am "update Gemfile"
git checkout -b master
env:
PEM_KEY: ${{secrets.ALIYUN_PEM}}

Expand Down

0 comments on commit 2b2b221

Please sign in to comment.