Skip to content

Bump actions/download-artifact from 3 to 4 #67

Bump actions/download-artifact from 3 to 4

Bump actions/download-artifact from 3 to 4 #67

Workflow file for this run

name: Development builds
on:
push:
branches:
- main
jobs:
build_and_publish:
name: Build source distribution
if: github.repository == 'aesara-devs/aesara'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: Install dependencies and customize pyproject.toml
run: |
# Download dasel to modify pyproject.toml
curl -sSLf https://github.com/TomWright/dasel/releases/download/v2.0.2/dasel_linux_amd64 \
-L -o /tmp/dasel && chmod +x /tmp/dasel
# Modify pyproject.toml to set the nightly version in the form of
# x.y.z.postN, where N is the number of commits since the last release
/tmp/dasel put -f pyproject.toml project.name -v aesara-nightly
/tmp/dasel put -f pyproject.toml tool.hatch.version.raw-options.version_scheme -v post-release
/tmp/dasel put -f pyproject.toml tool.hatch.version.raw-options.local_scheme -v no-local-version
# Install build prerequisites
python -m pip install -U pip build
- name: Build the sdist
run: python -m build --sdist .
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.nightly_pypi_secret }}