Skip to content

Commit

Permalink
fix: fix broken release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgvalverde committed Aug 30, 2024
1 parent c42b6fc commit f96c305
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,4 @@ jobs:
contents: write

with:
ref_tag: "v${{needs.build.outputs.target_version}}"


tag_name: "${{needs.build.outputs.target_version}}"
8 changes: 4 additions & 4 deletions .github/workflows/release_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ on:
inputs:
tag_name:
type: string
description: "Release tag"
description: "Release tag. Format: X.Y.Z"
default: ""
workflow_call:
inputs:
tag_name:
type: string
description: "Release tag"
description: "Release tag. Format: X.Y.Z"
default: ""

env:
POETRY_VERSION: "1.8.3"
PYTHON_VERSION: "3.9"
LATEST_TAG: v$(git tag --sort=taggerdate | tail -1 | cut -c2-)
LATEST_TAG: $(git tag --sort=taggerdate | tail -1 | cut -c2-)

permissions:
contents: write
Expand All @@ -42,7 +42,7 @@ jobs:
- run: |
echo "TARGET_TAG=${{inputs.tag_name || env.LATEST_TAG}}" >> $GITHUB_ENV
- run: |
echo "TARGET_VERSION=$(echo ${{env.TARGET_TAG}} | sed -E 's/v([0-9]+\.[0-9]+)\.[0-9]+/\1.x/')" >> $GITHUB_ENV
echo "TARGET_VERSION=$(echo ${{env.TARGET_TAG}} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1.x/')" >> $GITHUB_ENV
# Ops
- name: Setup Docs Deploy
run: |
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ build-backend = "poetry.core.masonry.api"
disallow_untyped_defs = true
exclude = ["_static", "build", "examples", "notebooks", "venv", "_exp", "config", "dist", ".env", ".venv"]


[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version",] # version location
branch = "main" # branch to make releases of
changelog_file = "CHANGELOG.md" # changelog file
build_command = "pip install poetry -U && poetry build" # build dists; needs to install poetry to work with GH Actions

0 comments on commit f96c305

Please sign in to comment.