Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
cvzi committed Sep 16, 2024
1 parent d5a8f38 commit f642d94
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 31 deletions.
44 changes: 28 additions & 16 deletions .github/workflows/pypipublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,37 @@ on:
types: [published]

jobs:
deploy:
build-package:
name: Build & verify package
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
with:
attest-build-provenance-github: 'true'

deploy:
name: Publish to pypi.org
environment:
name: pypi
url: https://pypi.org/project/emoji/
url: https://test.pypi.org/p/test-emoji456
runs-on: ubuntu-latest
needs: build-package
permissions:
id-token: write
attestations: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build wheel
- name: Build package
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
- name: Download package built by build-and-inspect-python-package
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@v1.10.1
with:
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion .github/workflows/updateGithubPages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: updateGithubPages
name: Update GithubPages documentation

on:
workflow_dispatch:
Expand Down
14 changes: 0 additions & 14 deletions test.py

This file was deleted.

0 comments on commit f642d94

Please sign in to comment.