-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: build_dev_pkg | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
# push: | ||
# branches: [ master ] | ||
# pull_request: | ||
# branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Get current time | ||
uses: josStorer/get-current-time@v2 | ||
id: ct | ||
with: | ||
format: YYYYMMDD-HH | ||
utcOffset: "+08:00" | ||
- uses: actions/checkout@v2 | ||
- name: build with pyinstaller | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7.5 | ||
- name: upgrade pip | ||
run: python -m pip install --upgrade pip | ||
- name: install requirements.txt | ||
run: pip install -r requirements.txt | ||
- name: install pyinstaller | ||
run: pip install pyinstaller | ||
- name: run pyinstaller command | ||
env: | ||
BUILD_TIME: "${{ steps.ct.outputs.year }}${{ steps.ct.outputs.month }}${{ steps.ct.outputs.day }}_${{ steps.ct.outputs.hour }}${{ steps.ct.outputs.minute }}${{ steps.ct.outputs.second }}" | ||
run: pyinstaller -n pyshaka_dev_${{ env.BUILD_TIME }} -F pyshaka\main.py | ||
- name: Upload Artifact | ||
env: | ||
BUILD_TIME: "${{ steps.ct.outputs.year }}${{ steps.ct.outputs.month }}${{ steps.ct.outputs.day }}_${{ steps.ct.outputs.hour }}${{ steps.ct.outputs.minute }}${{ steps.ct.outputs.second }}" | ||
uses: actions/[email protected] | ||
with: | ||
name: pyshaka_dev_${{ env.BUILD_TIME }} | ||
path: dist\pyshaka_dev_${{ env.BUILD_TIME }}.exe |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters