Skip to content

release

release #15

Workflow file for this run

name: release
permissions:
contents: write
packages: write
statuses: write
pull-requests: read
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.x'
architecture: 'x64'
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y build-essential python3-pip
pip3 install build
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version from git tag
id: get_version
uses: battila7/get-version-action@v2
- name: Build partition-manager
run: |
python3 -m build
sha256sum dist/*.whl dist/*.tar.gz >dist/sha256sums
- name: "Publish release"
uses: "marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.get_version.outputs.version }}"
title: "partition-manager ${{ steps.get_version.outputs.version }}"
files: |
dist/sha256sums
dist/*.whl
dist/*.tar.gz