-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic release workflow (#861)
Co-authored-by: Carlos Cordoba <[email protected]>
- Loading branch information
1 parent
9bc744d
commit eb479ff
Showing
2 changed files
with
46 additions
and
2 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,44 @@ | ||
name: PyLS Release | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
|
||
jobs: | ||
build: | ||
name: Linux Py${{ matrix.PYTHON_VERSION }} | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: 'true' | ||
OS: 'linux' | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['3.8'] | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip- | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
architecture: 'x64' | ||
- run: python -m pip install --upgrade pip setuptools wheel twine | ||
- name: Build and publish python-language-server | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PYLS_TOKEN }} | ||
run: | | ||
python setup.py bdist_wheel --universal | ||
python setup.py sdist | ||
python -m twine check dist/* | ||
python -m twine upload 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