Skip to content

Instantly share code, notes, and snippets.

@melvinkcx
Created December 23, 2022 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvinkcx/da00aad6c9ec569a6548875be716d82f to your computer and use it in GitHub Desktop.
Save melvinkcx/da00aad6c9ec569a6548875be716d82f to your computer and use it in GitHub Desktop.
Github Workflow To Create A Release Using Poetry On Tag
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Setup Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry install
- name: Build
run: |
poetry build
- name: Pre-release
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: ./dist/*
tag_name: ${{ github.ref }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment