Skip to content

Commit

Permalink
Create build.yml (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsbai authored Jul 22, 2021
1 parent dd355e4 commit 7da5422
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build

on:
push:
workflow_dispatch:


jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: build
run: |
pip install pyinstaller
pyinstaller --onefile main.py
pyinstaller -F main.py
mv ./dist/main ./dist/aliyundrive-uploader_linux_amd64
- name: Upload artifacts linux_amd64
uses: actions/upload-artifact@v2
with:
name: aliyundrive-uploader_linux_amd64
path: ./dist/aliyundrive-uploader_linux_amd64

0 comments on commit 7da5422

Please sign in to comment.