mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Automate khoj python package versioning using hatch-vcs and Git tags
This commit is contained in:
10
.github/workflows/pypi.yml
vendored
10
.github/workflows/pypi.yml
vendored
@@ -35,16 +35,6 @@ jobs:
|
||||
- name: Install Application
|
||||
run: python -m pip install --upgrade pip && pip install --upgrade .
|
||||
|
||||
- name: 📝 Set Pre-Release Version for Master
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: sed -E -i "s/version = (.*)\"/version = \1a$(date +%s)\"/g" pyproject.toml
|
||||
|
||||
- name: 📝 Set Development Version for PR
|
||||
if: github.event_name == 'pull_request'
|
||||
env:
|
||||
PULL_REQUEST_NUMBER: ${{ github.event.number }}
|
||||
run: sed -E -i "s/version = (.*)\"/version = \1.dev$PULL_REQUEST_NUMBER$(date +%s)\"/g" pyproject.toml
|
||||
|
||||
- name: ⚙️ Build Python Package
|
||||
run: |
|
||||
# Setup Environment for Reproducible Builds
|
||||
|
||||
Reference in New Issue
Block a user