Skip to content

Commit

Permalink
auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
justjavac committed Aug 31, 2020
1 parent e27ae85 commit 1184e0c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ jobs:
target/release/dvm-x86_64-apple-darwin.zip
draft: true

- name: Push release branch
if: |
startsWith(github.repository, 'justjavac') &&
startsWith(github.ref, 'refs/tags/')
run: |
git config --local user.email "[email protected]"
git config --local user.name "迷渡"
git remote set-url origin https://justjavac:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git checkout release
cp -rf target/release/dvm-x86_64-* .
git commit -am "auto release"
git push
- name: Publish
if: |
startsWith(matrix.os, 'ubuntu') &&
Expand Down

0 comments on commit 1184e0c

Please sign in to comment.