1414 - ' major'
1515 - ' minor'
1616 - ' patch'
17+ push :
1718
1819jobs :
19- get_version :
20- runs-on : ubuntu-latest
21- outputs :
22- bumped-version-commit-sha : ${{ steps.commit_version.outputs.commit_long_sha || github.sha }}
23- steps :
24- - uses : actions/checkout@v4
25- with :
26- token : ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
20+ # get_version:
21+ # runs-on: ubuntu-latest
22+ # outputs:
23+ # bumped-version-commit-sha: ${{ steps.commit_version.outputs.commit_long_sha || github.sha }}
24+ # steps:
25+ # - uses: actions/checkout@v4
26+ # with:
27+ # token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
2728
28- - name : Use Python
29- uses : actions/setup-python@v5
30- with :
31- python-version : 3.x
29+ # - name: Use Python
30+ # uses: actions/setup-python@v5
31+ # with:
32+ # python-version: 3.x
3233
33- - name : Set up uv package manager
34- uses : astral-sh/setup-uv@v5
34+ # - name: Set up uv package manager
35+ # uses: astral-sh/setup-uv@v5
3536
36- - name : Use Node.js
37- uses : actions/setup-node@v4
37+ # - name: Use Node.js
38+ # uses: actions/setup-node@v4
3839
39- - name : Get current version
40- id : get_version
41- working-directory : impit-python
42- run : |
43- echo "current_version=$(uvx --from=toml-cli toml get --toml-path=pyproject.toml project.version)" >> "$GITHUB_OUTPUT"
40+ # - name: Get current version
41+ # id: get_version
42+ # working-directory: impit-python
43+ # run: |
44+ # echo "current_version=$(uvx --from=toml-cli toml get --toml-path=pyproject.toml project.version)" >> "$GITHUB_OUTPUT"
4445
45- - name : Increment version
46- id : increment_version
47- working-directory : impit-python
48- run : |
49- echo "new_version=$(npx semver -i ${{ github.event.inputs.bump }} ${{ steps.get_version.outputs.current_version }})" >> "$GITHUB_OUTPUT"
46+ # - name: Increment version
47+ # id: increment_version
48+ # working-directory: impit-python
49+ # run: |
50+ # echo "new_version=$(npx semver -i ${{ github.event.inputs.bump }} ${{ steps.get_version.outputs.current_version }})" >> "$GITHUB_OUTPUT"
5051
51- - name : Set new version
52- id : show_new_version
53- working-directory : impit-python
54- run : |
55- echo "New version is ${{ steps.increment_version.outputs.new_version }}"
56- uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version ${{ steps.increment_version.outputs.new_version }}
52+ # - name: Set new version
53+ # id: show_new_version
54+ # working-directory: impit-python
55+ # run: |
56+ # echo "New version is ${{ steps.increment_version.outputs.new_version }}"
57+ # uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version ${{ steps.increment_version.outputs.new_version }}
5758
58- - name : Commit new version
59- id : commit_version
60- uses : EndBug/add-and-commit@v9
61- with :
62- author_name : github-actions[bot]
63- author_email : github-actions[bot]@users.noreply.github.com
64- message : " chore(py): bump `pyproject.toml` version"
65- add : ' impit-python/pyproject.toml'
59+ # - name: Commit new version
60+ # id: commit_version
61+ # uses: EndBug/add-and-commit@v9
62+ # with:
63+ # author_name: github-actions[bot]
64+ # author_email: github-actions[bot]@users.noreply.github.com
65+ # message: "chore(py): bump `pyproject.toml` version"
66+ # add: 'impit-python/pyproject.toml'
6667
67- test :
68- needs : [get_version]
69- name : Build and test
70- uses : ./.github/workflows/python-test.yaml
71- secrets : inherit
72- with :
73- commit_sha : ${{ needs.get_version.outputs.bumped-version-commit-sha }}
68+ # test:
69+ # needs: [get_version]
70+ # name: Build and test
71+ # uses: ./.github/workflows/python-test.yaml
72+ # secrets: inherit
73+ # with:
74+ # commit_sha: ${{ needs.get_version.outputs.bumped-version-commit-sha }}
7475
7576 publish :
7677 defaults :
7778 run :
7879 working-directory : impit-python
7980 name : Publish
8081 runs-on : ubuntu-latest
81- needs : [test]
82+ # needs: [test]
8283 steps :
8384 - name : Download all artifacts
8485 uses : actions/download-artifact@v4
8586 with :
8687 path : impit-python/artifacts
88+ run-id : 14381587193
89+ github-token : ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
8790
8891 - name : List files
8992 run : |
@@ -98,12 +101,9 @@ jobs:
98101 run : |
99102 ls -lR
100103
101- - name : Install Python
102- uses : actions/setup-python@v5
104+ - name : Publish to PyPI
105+ uses : pypa/gh-action-pypi-publish@release/v1
103106 with :
104- python-version : 3.x
107+ repository-url : https://test.pypi.org/legacy/
108+ packages-dir : impit-python/wheels
105109
106- - name : Publish to PyPI
107- run : |
108- pip install maturin
109- maturin upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} wheels/*
0 commit comments