Compare commits
3 commits
755719daec
...
d5fc940e60
Author | SHA1 | Date | |
---|---|---|---|
d5fc940e60 | |||
d15b0a53dc | |||
74e6a1310b |
3 changed files with 34 additions and 2 deletions
32
.forgejo/workflows/release.yml
Normal file
32
.forgejo/workflows/release.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Python Package CI/CD
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
name: Publish to PyPI
|
||||||
|
container:
|
||||||
|
image: node:20-bookworm
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install -y python3 python3-venv
|
||||||
|
|
||||||
|
- name: Publish to PyPI
|
||||||
|
run: |
|
||||||
|
python3 -m venv venv
|
||||||
|
. ./venv/bin/activate
|
||||||
|
pip install -U twine build
|
||||||
|
python -m build .
|
||||||
|
python -m twine upload --username __token__ --password ${PYPI_TOKEN} dist/*
|
||||||
|
env:
|
||||||
|
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "gitcloak"
|
name = "gitcloak"
|
||||||
version = "0.0.1"
|
version = "0.0.2"
|
||||||
authors = [{ name = "Private.coffee Team", email = "support@private.coffee" }]
|
authors = [{ name = "Private.coffee Team", email = "support@private.coffee" }]
|
||||||
description = "Simple Python-based private frontend for GitHub repositories"
|
description = "Simple Python-based private frontend for GitHub repositories"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h1>{{ owner }}/{{ repo }} - <small>{{ file_path }}</small></h1>
|
<h1>{{ owner }}/{{ repo }} - <small>{{ file_path }}</small></h1>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<a href="/{{ owner }}/{{ repo }}/tree/main/{{ file_path.rsplit('/', 1)[0] }}">
|
<a href="/{{ owner }}/{{ repo }}/tree/main/{{ ("/" + file_path).rsplit('/', 1)[0].lstrip("/") }}">
|
||||||
<img class="icon" src="/assets/dist/icons/folder.svg" alt="Back to Parent Directory"> Back to Parent Directory
|
<img class="icon" src="/assets/dist/icons/folder.svg" alt="Back to Parent Directory"> Back to Parent Directory
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue