Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new release and publish workflows #41

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading