Skip to content

Commit

Permalink
ci: clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCura committed Dec 15, 2023
1 parent a96e311 commit 49744df
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@ on:
push:
branches:
- master
# TODO: temp
- ci/debug

env:
PYTHON_VERSION: 3.10.10
POETRY_VERSION: 1.6.1

permissions:
contents: write

jobs:
publish_and_release:
name: Publish Python 🐍 distribution 📦 to PyPI and create GitHub Release
# runs-on: ubuntu-latest
runs-on: [self-hosted]
container:
image: python:3.10
Expand All @@ -26,7 +20,7 @@ jobs:
url: https://pypi.org/p/muttlib
permissions:
id-token: write # Mandatory for trusted publishing
contents: write # Necessary for creating GitHub Release?
contents: write # Necessary for creating GitHub Release
steps:
- uses: actions/checkout@v4

Expand All @@ -50,16 +44,14 @@ jobs:
- name: Build package
run: poetry build

# TODO: uncomment
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.version.outputs.version }}
name: v${{ steps.version.outputs.version }}
body_path: release_notes.txt
# draft: false
draft: true # TODO: temp
draft: false
prerelease: false

0 comments on commit 49744df

Please sign in to comment.