Skip to content

Commit

Permalink
Trying out tags for more streamlined publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersSteenNilsen committed Jul 24, 2023
1 parent 336098d commit 0bef196
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 7 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/buildtagdebug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: release

permissions:
contents: write
pull-requests: read

on:
push:
tags:
- '*'


env:
SERVER: production


jobs:
run:
name: Bump and release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install Hatch
run: pip install --upgrade hatch

- name: build
run: hatch build

- name: publish-dummy
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
run: hatch version
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
.ruff_cache/
#Editor settings
.vscode/

#Autgenerated __about__ file
src/zshgpt/__about__.py

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
.ruff_cache/

# C extensions
*.so
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -59,7 +59,11 @@ python = ["3.7", "3.8", "3.9", "3.10", "3.11"]


[tool.hatch.version]
path = "src/zshgpt/__about__.py"
# path = "src/zshgpt/__about__.py"
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "src/zshgpt/__about__.py"

[tool.hatch.build.targets.app]

Expand Down
4 changes: 0 additions & 4 deletions src/zshgpt/__about__.py

This file was deleted.

0 comments on commit 0bef196

Please sign in to comment.