diff --git a/.github/workflows/deploy_aliyun.yml b/.github/workflows/deploy_aliyun.yml index d8d5b824..4c70a1af 100644 --- a/.github/workflows/deploy_aliyun.yml +++ b/.github/workflows/deploy_aliyun.yml @@ -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 @@ -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 "hi@typora.io" git config --global user.name "Typora" git remote add a dokku@dokku.typoraio.cn: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}}