mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-23 04:40:06 +00:00
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
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:
parent
1ff8cce65c
commit
b91d6b804e
8
.github/workflows/milestone-publish.yml
vendored
8
.github/workflows/milestone-publish.yml
vendored
@ -52,14 +52,14 @@ jobs:
|
|||||||
git remote add trigger git@js-beautify-github.com:beautifier/js-beautify.git
|
git remote add trigger git@js-beautify-github.com:beautifier/js-beautify.git
|
||||||
git fetch --all
|
git fetch --all
|
||||||
- name: Install python twinE
|
- name: Install python twinE
|
||||||
run: pip install twine
|
run: pip install twine wheel
|
||||||
- name: Run release script for ${{ github.event.milestone.title }}
|
- name: Run release script for ${{ github.event.milestone.title }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
MILESTONE_VERSION: ${{ github.event.milestone.title }}
|
MILESTONE_VERSION: ${{ github.event.milestone.title }}
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
|
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
|
||||||
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
|
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
|
||||||
run: |
|
run: |
|
||||||
./tools/release-all.sh ${MILESTONE_VERSION}
|
./tools/release-all.sh ${MILESTONE_VERSION}
|
||||||
|
@ -17,13 +17,13 @@ release_python()
|
|||||||
git fetch --all || exit 1
|
git fetch --all || exit 1
|
||||||
|
|
||||||
git checkout -B staging/release origin/staging/release
|
git checkout -B staging/release origin/staging/release
|
||||||
git clean -xfd || exit 1
|
git clean -xfd || exit 1
|
||||||
cd python
|
cd python
|
||||||
# python setup.py register -r pypi
|
# python setup.py register -r pypi
|
||||||
cp setup-js.py setup.py || exit 1
|
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
|
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
|
rm setup.py || exit 1
|
||||||
python -m twine upload dist/* || 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 checkout -B staging/main site/staging/main || exit 1
|
||||||
git reset --hard site/main || exit 1
|
git reset --hard site/main || exit 1
|
||||||
git merge origin/staging/main --no-edit || exit 1
|
git merge origin/staging/main --no-edit || exit 1
|
||||||
git push || exit 1
|
git push || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
sedi() {
|
sedi() {
|
||||||
@ -113,7 +113,7 @@ update_release_branch()
|
|||||||
git add -f js/test/generated/
|
git add -f js/test/generated/
|
||||||
git add -f python/jsbeautifier/tests/generated/
|
git add -f python/jsbeautifier/tests/generated/
|
||||||
git add -f python/cssbeautifier/tests/generated/
|
git add -f python/cssbeautifier/tests/generated/
|
||||||
|
|
||||||
git commit -m "Release: $NEW_VERSION"
|
git commit -m "Release: $NEW_VERSION"
|
||||||
git tag "v$NEW_VERSION" || exit 1
|
git tag "v$NEW_VERSION" || exit 1
|
||||||
git push || exit 1
|
git push || exit 1
|
||||||
@ -130,7 +130,7 @@ main()
|
|||||||
if [[ ! $NEW_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9].*$ ]]; then
|
if [[ ! $NEW_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9].*$ ]]; then
|
||||||
echo Version number must start with MAJOR.MINOR.INCREMENTAL numbering.
|
echo Version number must start with MAJOR.MINOR.INCREMENTAL numbering.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
npm --version > /dev/null || {
|
npm --version > /dev/null || {
|
||||||
echo ERROR: npm must be installed before attempting release
|
echo ERROR: npm must be installed before attempting release
|
||||||
|
Loading…
Reference in New Issue
Block a user