Skip to content
This repository has been archived by the owner on May 22, 2022. It is now read-only.

Commit

Permalink
chore: auto build
Browse files Browse the repository at this point in the history
  • Loading branch information
yuudi committed Oct 21, 2020
1 parent 939f447 commit 7e8d18a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:

jobs:
build:
runs-on: ubuntu-latest
name: auto build
runs-on: ubuntu-18.04
name: auto build docker

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESSTOKEN }}
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/windows-exe-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: windows-exe-build

on:
release:
types: [created]

jobs:
build:
runs-on: windows-2019
name: auto build windows binary

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build exe binary and archive
shell: cmd
run: |
cd .\src\client
pip install pyinstaller
pip install -r requirements.txt
pyinstaller main.spec
7z a yobot-windows64.zip .\dist\yobot.exe
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./src/client/dist/yobot-windows64.zip
asset_name: yobot-windows64.zip
asset_content_type: application/zip

0 comments on commit 7e8d18a

Please sign in to comment.