forked from mathbrook/KS5e-Data-Logging
-
Notifications
You must be signed in to change notification settings - Fork 0
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
11 changed files
with
267 additions
and
55 deletions.
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 |
---|---|---|
|
@@ -18,28 +18,7 @@ jobs: | |
# - name: Get current date and time | ||
# id: date | ||
# run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H_%M_%S')" | ||
# - name: Release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# tag_name: ${{ github.ref_name }}-${{ steps.date.outputs.date }} | ||
# files: ./* | ||
|
||
# - name: Set up Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.8' # Replace '3.x' with your Python version | ||
|
||
# - name: install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install -r requirements.txt | ||
|
||
# - name: run pyinstaller | ||
# run: | | ||
# pyinstaller --onefile ./parser_exe.py | ||
# - name: check what files we cooked up | ||
# run: | | ||
# ls -R | ||
|
||
- name: install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
|
@@ -55,6 +34,7 @@ jobs: | |
ls -r | ||
mkdir .\dist\test | ||
xcopy ".\test" ".\dist\test" /E | ||
copy ".\dataPlots.m" ".\dist" | ||
- name: release-downloader | ||
uses: robinraju/[email protected] | ||
|
@@ -73,7 +53,15 @@ jobs: | |
path: | | ||
./dist/* | ||
./build/* | ||
./*.m | ||
# - name: release all files | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# tag_name: ${{ github.ref_name }}-${{ steps.date.outputs.date }} | ||
# files: | | ||
# ./* | ||
|
||
test-exe: | ||
needs: build | ||
runs-on: windows-latest | ||
|
@@ -98,3 +86,37 @@ jobs: | |
# path: | | ||
# ./build/* | ||
# ./dist/parser_exe | ||
release-bin: | ||
needs: [build,test-exe] | ||
runs-on: windows-latest | ||
steps: | ||
- name: download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: parser-exe-windows | ||
path: parser-exe-download | ||
- name: compress artifact | ||
run: | | ||
tar -czvf parser-exe-windows.zip ./parser-exe-download | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.run_number }} | ||
release_name: ${{ github.ref_name }}_release_windows_${{ github.run_number }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload release asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./parser-exe-windows.zip | ||
asset_name: parser_exe_windows.zip | ||
asset_content_type: application/zip | ||
|
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
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
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
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
Oops, something went wrong.