Compare commits

..

No commits in common. "d5fc940e601bba50231c0ffd265899e001213f65" and "755719daec946791fad99c4599408e1abc6131d5" have entirely different histories.

3 changed files with 2 additions and 34 deletions

View file

@ -1,32 +0,0 @@
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 }}

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "gitcloak"
version = "0.0.2"
version = "0.0.1"
authors = [{ name = "Private.coffee Team", email = "support@private.coffee" }]
description = "Simple Python-based private frontend for GitHub repositories"
readme = "README.md"

View file

@ -7,7 +7,7 @@
<div class="col-md-12">
<h1>{{ owner }}/{{ repo }} - <small>{{ file_path }}</small></h1>
<div class="mb-3">
<a href="/{{ owner }}/{{ repo }}/tree/main/{{ ("/" + file_path).rsplit('/', 1)[0].lstrip("/") }}">
<a href="/{{ owner }}/{{ repo }}/tree/main/{{ file_path.rsplit('/', 1)[0] }}">
<img class="icon" src="/assets/dist/icons/folder.svg" alt="Back to Parent Directory"> Back to Parent Directory
</a>
</div>