Skip to content
Snippets Groups Projects
Commit 6467cea4 authored by Roberto-R's avatar Roberto-R
Browse files

Added release pipeline

parent 4cf8d14f
No related branches found
No related tags found
No related merge requests found
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
# -----
#
# A packaged release will be uploaded for a tagged version.
#
image: python:3.8
definitions:
caches:
pyinstaller: build
pipelines:
tags:
'windows*':
- step:
name: Create Windows Release Archive
caches:
- pip
- pyinstaller
script:
- apt update -qq && apt install python3-venv zip -y
- python3 -m pip install --upgrade pip
- python3 -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
- pip install pyinstaller
- pyinstaller main.spec
- cd dist/uScope/
- cp ../../README.md .
- ARCHIVE="uScope_${BITBUCKET_TAG}.zip"
- zip $ARCHIVE *
- pipe: atlassian/bitbucket-upload-file:0.3.1
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
FILENAME: '*.zip'
......@@ -4,7 +4,6 @@ block_cipher = None
a = Analysis(['main.py'],
pathex=['C:\\Users\\Robert\\source\\repos\\micropython\\tools\\uscope'],
binaries=[],
datas=[],
hiddenimports=[],
......@@ -26,7 +25,7 @@ exe = EXE(pyz,
bootloader_ignore_signals=False,
strip=False,
upx=True,
icon='logo.ico',
icon='images/logo.ico',
console=False )
coll = COLLECT(exe,
a.binaries,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment