build wheel for pypi package (#2314)
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (16, macos, 3.8) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (16, ubuntu, 3.8) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (16, windows, 3.8) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (18, macos, 3.10) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (18, ubuntu, 3.10) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (18, windows, 3.10) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (20, macos, 3.11) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (20, ubuntu, 3.11) (push) Has been cancelled
CI / Build ${{ matrix.os }} (Node ${{ matrix.node-version }}, Python ${{ matrix.python-version }} ) (20, windows, 3.11) (push) Has been cancelled

This commit is contained in:
Trim21 2024-09-24 17:48:13 +08:00 committed by GitHub
parent 1ff8cce65c
commit b91d6b804e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -52,14 +52,14 @@ jobs:
git remote add trigger git@js-beautify-github.com:beautifier/js-beautify.git
git fetch --all
- name: Install python twinE
run: pip install twine
run: pip install twine wheel
- name: Run release script for ${{ github.event.milestone.title }}
env:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
MILESTONE_VERSION: ${{ github.event.milestone.title }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
run: |
./tools/release-all.sh ${MILESTONE_VERSION}

View File

@ -17,13 +17,13 @@ release_python()
git fetch --all || exit 1
git checkout -B staging/release origin/staging/release
git clean -xfd || exit 1
git clean -xfd || exit 1
cd python
# python setup.py register -r pypi
cp setup-js.py setup.py || exit 1
python setup.py sdist || exit 1
python setup.py sdist bdist_wheel || exit 1
cp setup-css.py setup.py || exit 1
python setup.py sdist || exit 1
python setup.py sdist bdist_wheel || exit 1
rm setup.py || exit 1
python -m twine upload dist/* || exit 1
}
@ -57,7 +57,7 @@ release_web()
git checkout -B staging/main site/staging/main || exit 1
git reset --hard site/main || exit 1
git merge origin/staging/main --no-edit || exit 1
git push || exit 1
git push || exit 1
}
sedi() {
@ -113,7 +113,7 @@ update_release_branch()
git add -f js/test/generated/
git add -f python/jsbeautifier/tests/generated/
git add -f python/cssbeautifier/tests/generated/
git commit -m "Release: $NEW_VERSION"
git tag "v$NEW_VERSION" || exit 1
git push || exit 1
@ -130,7 +130,7 @@ main()
if [[ ! $NEW_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9].*$ ]]; then
echo Version number must start with MAJOR.MINOR.INCREMENTAL numbering.
exit 1
fi
fi
npm --version > /dev/null || {
echo ERROR: npm must be installed before attempting release