Skip to content

palletjack v4.0.1

palletjack v4.0.1 #9

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
- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: 👊 Bump version
run: |
TAG=$(gh release view --json tagName --jq ".tagName")
sed -i "s/__version__ = .*$/__version__ = '$TAG'/" src/palletjack/version.py
- 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 }}