This repository was archived by the owner on Nov 17, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 152
39 lines (36 loc) · 1.42 KB
/
dev-builds.yml
File metadata and controls
39 lines (36 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 }}