mirror of
https://github.com/langchain-ai/markdown-exec.git
synced 2026-08-25 12:19:10 -04:00
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: release
|
|
|
|
on: push
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
JUPYTER_PLATFORM_DIRS: 1
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
fetch-tags: true
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Setup uv
|
|
uses: astral-sh/setup-uv@v3
|
|
- name: Set up Deno
|
|
uses: denoland/setup-deno@v2
|
|
- name: Install Deno Jupyter Kernel
|
|
run: deno jupyter --install
|
|
- name: Build dists
|
|
if: github.repository_owner == 'pawamoy-insiders'
|
|
run: uv tool run --from build pyproject-build
|
|
- name: Upload dists artifact
|
|
uses: actions/upload-artifact@v4
|
|
if: github.repository_owner == 'pawamoy-insiders'
|
|
with:
|
|
name: markdown-exec-insiders
|
|
path: ./dist/*
|
|
- name: Prepare release notes
|
|
if: github.repository_owner != 'pawamoy-insiders'
|
|
run: uv tool run git-changelog --release-notes > release-notes.md
|
|
- name: Create release with assets
|
|
uses: softprops/action-gh-release@v2
|
|
if: github.repository_owner == 'pawamoy-insiders'
|
|
with:
|
|
files: ./dist/*
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@v2
|
|
if: github.repository_owner != 'pawamoy-insiders'
|
|
with:
|
|
body_path: release-notes.md
|