Skip to content

Commit

Permalink
Creating nightly release
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schleemilch <[email protected]>
  • Loading branch information
sschleemilch committed Sep 6, 2024
1 parent 4346fd6 commit 964585d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: wheel

on:
push:
branches: [master]

env:
PYTHON_VERSION: "3.10.6"
CI: 1 # shall any script needs to know if it's running in the CI

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout vss-tools
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.8.3"
- name: Poetry build
run: poetry build
- name: Rename Wheel
run: |
set -e
cd dist
old_wheel_name=$(ls *.whl)
version=$(echo $old_wheel_name | sed 's/vss_tools-\(.*\)-py3-none-any.whl/\1/')
new_wheel_name="vss_tools_nightly.whl"
mv "$old_wheel_name" "$new_wheel_name"
echo "File renamed from $old_wheel_name to $new_wheel_name"
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
tag_name: nightly
files: dist/*.whl
fail_on_unmatched_files: true

0 comments on commit 964585d

Please sign in to comment.