Compare commits
3 commits
5e7d997e69
...
771993f999
| Author | SHA1 | Date | |
|---|---|---|---|
| 771993f999 | |||
| 2fb0608a87 | |||
| 2f29054429 |
3 changed files with 73 additions and 4 deletions
2
.github/workflows/docs.yaml
vendored
2
.github/workflows/docs.yaml
vendored
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.13'
|
||||
python-version: '3.x'
|
||||
- name: Install the latest version of uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
|
||||
|
|
|
|||
67
.github/workflows/release.yaml
vendored
Normal file
67
.github/workflows/release.yaml
vendored
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
name: Publish python package to pypi and testpypi
|
||||
on: push
|
||||
jobs:
|
||||
build:
|
||||
name: Build distribution
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install the latest version of uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
|
||||
- name: Build the wheel and source tarball
|
||||
run: uv build
|
||||
- name: Store dist packages
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: python-package-distributions
|
||||
path: dist/
|
||||
|
||||
publish-to-pypi:
|
||||
name: Publish dist to pypi
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
needs:
|
||||
- build
|
||||
environment:
|
||||
name: pypi
|
||||
url: https://pypi.org/p/topen
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Grab dist files
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: python-package-distributions
|
||||
path: dist/
|
||||
- name: Send off to PyPi
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
|
||||
publish-to-testpypi:
|
||||
name: Test publishing to testpypi
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- build
|
||||
environment:
|
||||
name: testpypi
|
||||
url: https://test.pypi.org/p/topen
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Grab dist files
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: python-package-distributions
|
||||
path: dist/
|
||||
- name: Send off to TestPyPi
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
repository-url: https://test.pypi.org/legacy/
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
# Simple taskwarrior note management
|
||||
|
||||
[Docs](https://marty-oehme.github.io/topen)
|
||||
[Pypi](https://pypi.org/project/topen)
|
||||
[](https://marty-oehme.github.io/topen)
|
||||
[](https://pypi.org/project/topen)
|
||||
[](https://github.com/marty-oehme/topen/releases/latest)
|
||||

|
||||
|
||||
A script without bells and whistles.
|
||||
Focuses on letting you quickly:
|
||||
|
|
@ -15,7 +17,7 @@ Provide a taskwarrior task id or uuid and `topen` creates a new note file or let
|
|||
you edit an existing one. Additionally it adds a small annotation to the task
|
||||
to let you see that there exists a note file next time you view the task.
|
||||
|
||||
Should just work as-is without additional configuration in most modern taskwarrior setups.[^moderntw]
|
||||
Should just work as-is without additional configuration in most modern taskwarrior setups.
|
||||
|
||||
Can be configured through environment variables or cli options, see below.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue