Skip to content

Commit

Permalink
Fix release step (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: cyc60 <avsysoev60@gmail.com>
  • Loading branch information
cyc60 authored Feb 6, 2023
1 parent f8e6b7c commit 84f3cb4
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,14 @@ jobs:
$RELEASE_VERSION = $env:GITHUB_REF.replace('refs/tags/', '')
$BUILD_FILE_NAME = "operator-" + $RELEASE_VERSION + "-windows-amd64"
$BUILD_FILE_NAME_PATH = ".\" + $BUILD_FILE_NAME
poetry run pyinstaller --onefile --hidden-import multiaddr.codecs.uint16be --hidden-import multiaddr.codecs.idna --collect-data src --add-data ./src/common/abi:src/common/abi/ ./src/main.py --name operator --distpath ./${BUILD_FILE_NAME};
poetry run pyinstaller --onefile --hidden-import multiaddr.codecs.uint16be --hidden-import multiaddr.codecs.idna --collect-data src --add-data "./src/common/abi;src/common/abi/" ./src/main.py --name operator --distpath ./${BUILD_FILE_NAME};
$ZIP_FILE_NAME = $BUILD_FILE_NAME + ".zip"
Compress-Archive -Path $BUILD_FILE_NAME_PATH -DestinationPath $ZIP_FILE_NAME
mkdir \tmp\artifacts
copy $ZIP_FILE_NAME \tmp\artifacts\
$CHECKSUM_FILE_NAME_PASH = "\tmp\artifacts\" + $BUILD_FILE_NAME + ".sha256"
certUtil -hashfile $ZIP_FILE_NAME SHA256 | findstr /i /v "SHA256" | findstr /i /v "CertUtil" > $CHECKSUM_FILE_NAME_PASH
defaults:
run:
shell:
bash
steps:
- uses: actions/checkout@v2

Expand All @@ -61,11 +57,9 @@ jobs:
python-version: ${{ matrix.PYTHON_VERSION }}

- name: Install Poetry
uses: snok/install-poetry@v1
uses: Gr1N/setup-poetry@v8
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
poetry-version: "1.2.2"

- name: Install dependencies
run: poetry install --no-interaction --no-root
Expand Down

0 comments on commit 84f3cb4

Please sign in to comment.