Skip to content

Merge pull request #2 from matejpokorny/update_python #13

Merge pull request #2 from matejpokorny/update_python

Merge pull request #2 from matejpokorny/update_python #13

Workflow file for this run

on:
push:
tags:
- v0.*
- v1.*
jobs:
build:
name: Build and Release
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/aws-testlib
permissions:
id-token: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: Gr1N/setup-poetry@v8
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Setup poetry
run: >
poetry self add "poetry-dynamic-versioning[plugin]"
poetry dynamic-versioning enable
- name: Build
run: make
- name: Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ github.token }}
with:
draft: false
prerelease: false
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}