Skip to content

Bump actions/upload-artifact from 4.3.0 to 4.3.1 #150

Bump actions/upload-artifact from 4.3.0 to 4.3.1

Bump actions/upload-artifact from 4.3.0 to 4.3.1 #150

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
build-package:
name: Build Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: 3.11
- name: Setup Poetry
uses: threeal/setup-poetry-action@v1.1.0
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4.0.0
with:
path: .venv
key: poetry-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
- name: Install Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: poetry install --with dev
- name: Build Package
run: poetry build
- name: Upload Package
uses: actions/upload-artifact@v4.3.1
with:
path: dist/*
generate-docs:
name: Generate Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: 3.11
- name: Setup Poetry
uses: threeal/setup-poetry-action@v1.1.0
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4.0.0
with:
path: .venv
key: poetry-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
- name: Install Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: poetry install --with dev
- name: Generate Documentation
run: poetry run poe docs