Release 1.96.1.0 for synapse 1.96.1 #137
Workflow file for this run
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
--- | |
name: Build | |
'on': | |
push: | |
tags: | |
- 'v*' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: true | |
matrix: | |
python: [3.9] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install build dependency | |
run: pip install build==0.9.0 | |
- name: Build dists | |
run: python -m build --sdist --outdir ./dist | |
- name: Build wheel | |
run: pip wheel . --no-deps --wheel-dir ./dist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist/* | |
if-no-files-found: error | |
publish: | |
needs: [build] | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
python: 3.9 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ env.python }} | |
- name: Install twine | |
run: pip install twine==4.0.1 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: assets/ | |
id: donwload-release-asset | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
# note you'll typically need to create a personal access token | |
# with permissions to create releases in the other repo | |
token: ${{ github.token }} | |
prerelease: ${{ contains(github.ref, 'rc') }} | |
body_path: ${{ github.workspace }}/CHANGELOG.md | |
files: 'assets/*' |