Skip to content

upload to pypi

upload to pypi #1

Workflow file for this run

name: Create Release
on:
push:
tags:
- "v*"
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Extract version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Generate release notes
id: generate_notes
uses: mikepenz/release-changelog-builder-action@v3
with:
configuration: ".github/changelog-config.json"
commitMode: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: "LeetCLI v${{ env.VERSION }}"
body: ${{ steps.generate_notes.outputs.changelog }}
draft: false
prerelease: false
generate_release_notes: ${{ steps.generate_notes.outputs.changelog == '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}