Skip to content

Commit

Permalink
add new release and publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Aug 30, 2024
1 parent 62fce98 commit c862dd7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Create a draft release and build and upload all installers to it.
name: Create Draft Release

on:
workflow_dispatch:
inputs:
commit_to_release:
description: 'Enter commit hash to release (example: ef4037cb571f99cb4919b520fde7174972aae473)'
type: string
required: true
tag_to_release:
description: 'Enter tag to release (example: v1.5.5)'
type: string
required: true

jobs:
create-release:
uses: MannLabs/alphashared/.github/workflows/create_release.yml@v1
secrets: inherit
permissions:
contents: write
with:
package_name: directlfq
build_nodejs_ui: false
commit_to_release: ${{ inputs.commit_to_release }}
tag_to_release: ${{ inputs.tag_to_release }}
22 changes: 22 additions & 0 deletions .github/workflows/publish_on_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Publish and test releases on Test-PyPI and PyPI.
name: Publish on PyPi

on:
workflow_dispatch:
inputs:
tag_to_release:
description: 'Enter tag to release (example: v1.5.5). A tag with the same name must exist in the repository.'
type: string
required: true

jobs:
publish_on_pypi:
uses: MannLabs/alphashared/.github/workflows/publish_on_pypi.yml@v1
with:
# see the documentation of the workflow for more information on the parameters
package_name: directlfq
tag_to_release: ${{ inputs.tag_to_release }}
use_pyproject_toml: false
secrets:
test_pypi_api_token: ${{ secrets.TEST_PYPI_API_TOKEN }}
pypi_api_token: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit c862dd7

Please sign in to comment.