v5.0.0 #17
Workflow file for this run
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
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 }} |