Skip to content

Bump version to 0.2.0 #1

Bump version to 0.2.0

Bump version to 0.2.0 #1

Workflow file for this run

name: Release Workflow
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x' # Adjust to your Python version
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Create Binary with PyInstaller
run: pyinstaller --onefile rl/cli.py
- name: Get the version from tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
release_name: Release ${{ env.RELEASE_VERSION }}
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: ./dist/cli
asset_name: cli-${{ env.RELEASE_VERSION }}
asset_content_type: application/octet-stream