Skip to content

chore: fix release command #52

chore: fix release command

chore: fix release command #52

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Create release
on:
push:
branches: [ main ]
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run task test
- name: Run build tests
run: poetry run task test-build
- uses: actions/upload-artifact@v4
with:
name: release
path: dist/certbot-lambda.zip
retention-days: 1
- name: Semantic Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email [email protected]
poetry run task release