Skip to content

Commit

Permalink
trusted-publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed May 2, 2024
1 parent 143419c commit f01127a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: Publish Python Package

on:
workflow_dispatch:
release:
types: [created]

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest

# needs: [test]
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: pip
cache-dependency-path: '**/pyproject.toml'

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
run: pip install poetry poetry-dynamic-versioning

- name: Install dependencies
run: poetry install --no-interaction

- name: Add dynamic versioning plugin
run: poetry self add "poetry-dynamic-versioning[plugin]"

# - name: Install dependencies
# run: poetry install --no-interaction

- name: Build source and wheel archives
run: |
poetry build
run: poetry build

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
password: ${{ secrets.pypi_password }}
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 0 additions & 2 deletions src/linkml_map/compiler/sql_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def compile_class(
if not col_trs:
return
stmt += ", \n".join(col_trs)
if self.new_table_when_transforming:
stmt += ");"
stmt += f" FROM {cd.name}"
compiled.serialization += f"{stmt};\n"

Expand Down

0 comments on commit f01127a

Please sign in to comment.