Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}

steps:
- name: 🚀 Create Release
Expand All @@ -32,3 +30,4 @@ jobs:
github-app-key: ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }}
github-app-name: ${{ secrets.UGRC_RELEASE_BOT_NAME }}
github-app-email: ${{ secrets.UGRC_RELEASE_BOT_EMAIL }}
extra-files: src/projectname/version.py
70 changes: 70 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Release Events
on:
release:
types: [published]

env:
GH_TOKEN: ${{ github.token }}

jobs:
build:
# disabled for this project since we don't want to publish it
if: false
name: Build
runs-on: ubuntu-latest
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-file: .python-version
cache: pip
cache-dependency-path: setup.py

- name: 📦 Build package
run: pipx run build

- name: ⬆️ Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: dist
retention-days: 1

publish:
name: Publish
runs-on: ubuntu-latest
needs: build
environment:
name: prod
url: https://pypi.org/project/<project-name>
permissions:
id-token: write

steps:
- name: ⬇️ Download artifacts
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: dist

- name: 🚀 Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

notify:
name: Notifications
runs-on: ubuntu-latest
needs: publish
permissions:
contents: read
pull-requests: write
issues: write
steps:
- name: Release Notifier
uses: agrc/release-issue-notifications-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 6 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
"oidc",
"opensgid",
"pgsql",
"pipx",
"projectname",
"psycopg",
"pygsheets",
"pyodbc",
"pypa",
"pypi",
"pytest",
"rindex",
"sgid",
Expand All @@ -25,9 +29,7 @@
"worknote"
],
"editor.formatOnSave": true,
"editor.rulers": [
120
],
"editor.rulers": [120],
"coverage-gutters.showGutterCoverage": false,
"coverage-gutters.showLineCoverage": true,
"coverage-gutters.showRulerCoverage": false,
Expand All @@ -40,6 +42,6 @@
"source.organizeImports": "explicit"
},
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.defaultFormatter": "charliermarsh.ruff"
}
}
5 changes: 1 addition & 4 deletions src/projectname/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
"""A single source of truth for the version in a programmatically-accessible variable.

This must only include a single line: __version__ = 'x.y.z'
"""
"""A single source of truth for the version in a programmatically-accessible variable."""

__version__ = "1.0.2"
Loading