Add Gitea Actions workflow: release.yml
This commit is contained in:
33
.gitea/workflows/release.yml
Normal file
33
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install build tools
|
||||
run: pip install build
|
||||
|
||||
- name: Build package
|
||||
run: python -m build
|
||||
|
||||
- name: Create Release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |
|
||||
dist/**
|
||||
title: Release ${{ gitea.ref }}
|
||||
body: See https://github.com/7000pctAUTO/shell-command-generator-cli/releases/tag/${{ gitea.ref }} for changelog
|
||||
draft: false
|
||||
prerelease: false
|
||||
Reference in New Issue
Block a user