try actions

This commit is contained in:
Joe Kaufeld 2023-03-22 22:27:33 -04:00
parent 8fffbb52a5
commit 81ef514459
2 changed files with 7 additions and 6 deletions

View File

@ -11,8 +11,8 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
- uses: https://github.com/actions/checkout@v2
- uses: https://github.com/actions/setup-python@v4
with:
python-version: '3.10.x'
- name: Install Env
@ -27,7 +27,7 @@ jobs:
run: |
sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" src/__init__.py
make build
- uses: ncipollo/release-action@v1
- uses: https://github.com/ncipollo/release-action@v1
with:
artifacts: "utils"
body: "It's releasin' time"

View File

@ -93,13 +93,14 @@ def beautify(words: list[str]):
@main.command()
def update():
"""Get the newest release from GitHub and install it."""
"""Get the newest release from Gitea and install it."""
response = httpx.get(
"https://api.github.com/repos/itsthejoker/utils/releases/latest"
# "https://api.github.com/repos/itsthejoker/utils/releases/latest"
"https://git.joekaufeld.com/api/v1/repos/jkaufeld/utils/releases/latest"
)
if response.status_code != 200:
click.echo(
f"Something went wrong when talking to GitHub; got a"
f"Something went wrong when talking to Gitea; got a"
f" {response.status_code} with the following content:\n"
f"{response.content}"
)