Skip to content

Commit

Permalink
Add Release action
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Dec 23, 2023
1 parent a79af73 commit 99a986d
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 🚀 release
run-name: Release ${{ inputs.ref || github.ref_name }} (${{ github.event_name }})

on:
workflow_dispatch:
inputs:
ref:
description: Tag to release
required: true
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

permissions: {}

jobs:
dist:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Build package
run: pipx run build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
upload_pypi:
name: Upload
needs: [ dist ]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/rpmlint/
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
release:
needs: [ upload_pypi ]
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: softprops/action-gh-release@v1
with:
name: RPMLint ${{ github.ref_name }}
draft: true
generate_release_notes: true

0 comments on commit 99a986d

Please sign in to comment.