4 Commits

Author SHA1 Message Date
3c43906977 another another test 2024-08-27 01:43:34 -07:00
0ca8609bb7 Try to guess version from action ref 2024-08-27 01:42:29 -07:00
394cac155f Fix possible exclusion of yaclog.cli 2024-08-27 01:42:18 -07:00
4d57ef2fb0 fix deploy permissions 2024-08-27 01:03:09 -07:00
3 changed files with 11 additions and 6 deletions

View File

@ -13,6 +13,10 @@ jobs:
click-version: [ "click~=8.0" ]
steps:
- name: Run Action
id: yaclog-show
uses: drewcassidy/yaclog@action-test
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
@ -39,10 +43,6 @@ jobs:
- name: Run Unit Tests
run: python -m unittest -v
- name: Run Action
id: yaclog-show
uses: ./
deploy:
needs: test
runs-on: ubuntu-latest
@ -52,6 +52,7 @@ jobs:
url: https://pypi.org/p/yaclog
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4

View File

@ -46,7 +46,11 @@ runs:
- name: Setup Yaclog
shell: bash
run: pipx install --python ${{ steps.setup-python.outputs.python-path }} ${{ github.action_path }}
run: |
[[ "$ACTION_REF" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_YACLOG="$ACTION_REF"
pipx install --python ${{ steps.setup-python.outputs.python-path }} ${{ github.action_path }}
env:
ACTION_REF: ${{ github.action_ref }}
- name: Create New Release
shell: bash

View File

@ -60,4 +60,4 @@ Docs = "https://yaclog.readthedocs.io/"
fallback_version = "0.0.0"
[tool.setuptools.packages.find]
include = ["yaclog"]
include = ["yaclog*"]