-
Notifications
You must be signed in to change notification settings - Fork 4
EXP-1213: Add GitHub Actions release automation #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
5d488ac
46305a7
b0d0b69
f970780
541da38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: release | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: extractions/setup-just@v3 | ||
| - uses: actions/setup-python@v7 | ||
| with: | ||
| python-version: '3.14' | ||
| - name: Build package | ||
| run: just install build | ||
| - name: Publish to PyPi | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| password: ${{ secrets.PYPI_API_TOKEN }} | ||
| - name: Upload assets to release | ||
| uses: AButler/upload-release-assets@v3.0.1 | ||
| with: | ||
| files: 'dist/*' | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
|
Comment on lines
+10
to
+27
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| *.egg-info | ||
| .cache/ | ||
| venv/ | ||
| .venv/ | ||
| .tox | ||
| test-*.xml | ||
| .coverage | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Install the project and build its dependencies. | ||
| install: | ||
| python -m pip install --upgrade pip | ||
| python -m pip install -e . -r requirements-tests.txt | ||
|
|
||
| # build sdist and wheel into dist/ | ||
| build: | ||
| python -m pip install build | ||
| python -m build |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| [build-system] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we're committing to switching to |
||
| requires = ["setuptools>=61", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "pystalk" | ||
| description = "Beanstalkd" | ||
| dynamic = ["version", "dependencies", "optional-dependencies"] | ||
| readme = "README.md" | ||
| requires-python = ">=3.6, <4" | ||
| license = { file = "LICENSE.txt" } | ||
| authors = [{ name = "EasyPost", email = "oss@easypost.com" }] | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Environment :: Console", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3.6", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Intended Audience :: System Administrators", | ||
| "Operating System :: OS Independent", | ||
| "Topic :: Database", | ||
| "License :: OSI Approved :: ISC License (ISCL)", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Source = "https://github.com/easypost/pystalk" | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { attr = "pystalk.__version__" } | ||
| dependencies = { file = ["requirements.txt"] } | ||
|
|
||
| [tool.setuptools.dynamic.optional-dependencies] | ||
| dev = { file = ["requirements-tests.txt"] } | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| exclude = ["tests", "tests.*"] | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.