Skip to content

Fizxmike readme patch plus release action #2

Fizxmike readme patch plus release action

Fizxmike readme patch plus release action #2

Workflow file for this run

name: Release
on:
pull_request:
jobs:
build-dist:
name: Package PyESAPI
runs-on: windows-latest
steps:
- name: Update pip
run: py -m pip install --upgrade build
- name: Build package
run: py -m build
pypi-publish:
name: Upload release to PyPI
runs-on: windows-latest
needs: build-dist
environment:
name: pypi
url: https://pypi.org/p/<your-pypi-project-name>
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
github-release:
name: Create release in GitHub
runs-on: windows-latest
steps:
- name: Create Release
uses: softprops/[email protected]
with:
name: PyESAPI ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
prerelease: false
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.