Update release notes #15
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
# | |
# Copyright © 2022-present Peter M. Stahl [email protected] | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: release | |
on: | |
push: | |
tags: | |
- v* | |
env: | |
PYTHON_VERSION: 3.12 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Set up Poetry | |
uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: 1.8 | |
- name: Set up virtual environment | |
run: poetry env use ${{ env.PYTHON_VERSION }} | |
- name: Set up PYPI credentials | |
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | |
- name: Get tag version | |
id: version | |
uses: battila7/get-version-action@v2 | |
- name: Build package | |
run: poetry build | |
- name: Publish package | |
run: poetry publish | |
- name: Create release and upload artifacts | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: Lingua ${{ steps.version.outputs.version-without-v }} | |
files: | | |
dist/*.tar.gz | |
dist/*.whl | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |