Skip to content

v5.1.0

v5.1.0 #20

Workflow file for this run

name: Release Events
on:
release:
types: [published]
env:
GH_TOKEN: ${{ github.token }}
jobs:
publish:
name: Build and Publish
runs-on: ubuntu-latest
environment:
name: prod
url: https://pypi.org/project/ugrc-palletjack
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: 🛞️ Install wheel
run: pip install wheel
- name: 📦 Build package
run: python setup.py sdist bdist_wheel
- name: 🚀 Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: 🔔 Create deployment notification
uses: agrc/service-now-worknote-action@v1
with:
repo-token: ${{ github.token }}
username: ${{ secrets.SN_USERNAME }}
password: ${{ secrets.SN_PASSWORD }}
instance-name: ${{ secrets.SN_INSTANCE }}
table-name: ${{ secrets.SN_TABLE }}
system-id: ${{ secrets.SN_SYS_ID }}