Skip to content

Fix publish CI and update changelog #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
push:
tags: v[0-9]+.[0-9]+.[0-9]+

workflow_dispatch:



jobs:
build:
Expand All @@ -34,23 +31,21 @@ jobs:
# TODO: Add logic to do github release too here

publish:
name: Publish to TestPyPI
name: Publish to PyPI
runs-on: ubuntu-latest
needs:
- build
environment:
# name: pypi
name: testpypi
name: pypi
url: https://pypi.org/project/pyscript
permissions:
id-token: ${{ secrets.PYPI_TOKEN }}
id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifacts@v3
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish release to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# This is for testing
with:
repository-url: https://test.pypi.org/legacy/
Loading