Skip to content

Commit

Permalink
fix release script and makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Bento007 committed Mar 21, 2024
1 parent 2fe8950 commit 00b553a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ on:
branches:
- main

pull_request:
branches:
- "*"

permissions:
contents: write
pull-requests: write
Expand All @@ -22,7 +18,7 @@ jobs:
with:
manifest-file: ".release-please-manifest.json"
config-file: "release-please-config.json"
target-branch: "tsmith/pypi"
target-branch: "main"
outputs:
ontology_assets_upload_url: ${{ steps.release.outputs.ontology-assets--upload_url }}
paths_released: ${{ steps.release.outputs.paths_released }}
Expand Down Expand Up @@ -75,7 +71,7 @@ jobs:
- name: Checkout main branch
uses: actions/checkout@v4
with:
ref: tsmith/pypi
ref: main
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v5
Expand All @@ -87,5 +83,4 @@ jobs:
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: api/python/dist
5 changes: 3 additions & 2 deletions api/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ build: package-data
pip install build twine
python -m build

test/publish: build
release/testpypi: build
python -m twine upload --repository testpypi dist/*

publish: build
release/pypi: build
# Manually release in case CI/CD pipeline is not working in ./.github/workflows/release.yml
python -m twine upload dist/*

unit-tests:
Expand Down

0 comments on commit 00b553a

Please sign in to comment.