Skip to content

Commit

Permalink
Add Github workflow for creating Github releases (PicnicSupermarket#53)
Browse files Browse the repository at this point in the history
Add Github workflow for creating Github releases from git tags.
  • Loading branch information
michael-the1 authored Jun 4, 2024
1 parent 3a478e3 commit 1e877cd
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pypi-build-and-deploy
name: build-deploy-and-release

# Only run this workflow when a diepvries/* tag gets pushed
on:
Expand Down Expand Up @@ -29,3 +29,26 @@ jobs:
run: python -m tox -e build
- name: Run tox upload
run: python -m tox -e upload

create-github-release:

runs-on: ubuntu-22.04

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create Github release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

0 comments on commit 1e877cd

Please sign in to comment.