-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is based on the following commit with a few changes: https://github.com/JonathonReinhart/scuba/blob/b086413404/.github/workflows/publish-main.yml - pip install setuptools wheel - apt install scons - CC -> BOOTLOADER_CC TODO: Un-comment branches: main
- Loading branch information
1 parent
3786a9f
commit b372c31
Showing
2 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Upload to Test PyPI | ||
|
||
# On every push to main, push to Test PyPI | ||
on: | ||
push: | ||
#branches: | ||
# - main | ||
|
||
# TODO: De-duplicate with python-publish-release.yml | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches | ||
- name: Unshallow checkout | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
sudo apt-get update | ||
sudo apt-get install -y musl-tools scons | ||
- name: Build | ||
env: | ||
BOOTLOADER_CC: /usr/bin/musl-gcc | ||
CI_VERSION_BUILD_NUMBER: ${{ github.run_id }} | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- name: Publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_TEST_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }} | ||
run: twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters