diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index be9f6b8b..a8d812f2 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -41,3 +41,15 @@ jobs: with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} + + + - name: Publish on KLayout Salt server + run: | + # Extract the tag from GITHUB_REF (e.g., 'refs/tags/v1.0.0' -> 'v1.0.0') + RELEASE_TAG=${GITHUB_REF#refs/tags/} + echo "Release tag: $RELEASE_TAG" + + # Use the tag in your script + # ./your-script.sh "$RELEASE_TAG" + + curl "https://sami.klayout.org/register_request?agree_terms=1&mail=lukasc%40ece.ubc.ca&provider=5&url_path=siepic%2FSiEPIC-Tools.git%2Ftags%2F$RELEASE_TAG%2Fklayout_dot_config&user=Lukas+Chrostowski"