Skip to content

Commit

Permalink
Enable dynamic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
randy-seng committed Mar 25, 2024
1 parent 20961db commit 33337ff
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/publish-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: push

jobs:
build-n-publish:
# needs: test
# needs: test
name: Build and upload release to TestPyPI
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -23,11 +23,29 @@ jobs:
contents: read
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Check-out platomo-build repository
uses: actions/checkout@v4
with:
repository: platomo/platomo-build
token: ${{ secrets.PLATOMO_BUILDER_ACCESS }}
path: platomo-build
- name: Install builder dependencies
run: |
cd platomo-build
python -m pip install --upgrade pip
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt
fi
if [ -f "requirements-dev.txt" ]; then
pip install -r requirements-dev.txt
fi
- name: Build release assets
run: python ./platomo-build/build.py --package_version ${{ inputs.package-version }}
- name: Install pypa/build
run: >-
python -m
Expand Down

0 comments on commit 33337ff

Please sign in to comment.