-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fizxmike readme patch plus release action (#30)
Clarifying and simplifying quick start. Added direct links to Jupyter Notebooks. Added tooling recommendations. Added workflow to build, upload to (test) pypi then create release. Bumped version num, added pywin32 dependency
- Loading branch information
Showing
4 changed files
with
135 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Release | ||
on: | ||
pull_request: | ||
# push: | ||
# tags: | ||
# - 'v[0-9]+.[0-9]+.[0-9]+' # like v1.0.0 | ||
jobs: | ||
build-dist: | ||
name: Package PyESAPI and Release | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Update pip | ||
run: py -m pip install --upgrade pip | ||
- name: Build package | ||
run: | | ||
py -m pip install --upgrade build | ||
py -m build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: PyESAPI ${{ github.ref_name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: true | ||
files: dist/* | ||
body: | | ||
This is the official `${{ github.ref_name }}` release of the PyESAPI for use on Eclipse TBOX or VIC environment for Eclipse versions 15.1 and up. | ||
pypi-publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
needs: build-dist | ||
environment: | ||
name: pypi | ||
url: https://test.pypi.org/p/PyESAPI | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Download All Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: Publish package distributions to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' # like v1.0.0 | ||
jobs: | ||
build-dist: | ||
name: Package PyESAPI and Release | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Update pip | ||
run: py -m pip install --upgrade pip | ||
- name: Build package | ||
run: | | ||
py -m pip install --upgrade build | ||
py -m build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: PyESAPI ${{ github.ref_name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: true | ||
files: dist/* | ||
body: | | ||
This is the official `${{ github.ref_name }}` release of the PyESAPI for use on Eclipse TBOX or VIC environment for Eclipse versions 15.1 and up. | ||
pypi-publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
needs: build-dist | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/pyesapi | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Download All Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: Publish package distributions to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters