Skip to content

Commit

Permalink
Merge pull request LucienShui#83 from LucienShui/dev
Browse files Browse the repository at this point in the history
Add docker branch support in actions, remove .travis.yml
  • Loading branch information
LucienShui committed Nov 24, 2019
2 parents 4b32105 + 08efcd5 commit a2644ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 38 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/upload-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,15 @@ jobs:
args: pasteme_docker.tar.gz application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push to docker branch
run: |
git clone https://github.com/${{ github.repository }}.git --depth=1 -b docker pasteme_buffer
rm -rf .git
cp -r pasteme_buffer/.git pasteme_docker
cd pasteme_docker
git config user.name "Lucien Shui"
git config user.email "lucien@lucien.ink"
git add --all
if ! git commit -m "Release at `TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S'`"; then exit 0; fi
git push https://"${{ secrets.GITHUB_PASSWORD }}"@"github.com/${{ github.repository }}.git" docker
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

0 comments on commit a2644ed

Please sign in to comment.