retry nb runs #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install jupyter notebook | |
run: | | |
pip install notebook | |
- uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- name: Install jupyter deno kernel | |
run: deno jupyter --unstable --install | |
- name: Run export | |
run: deno task build | |
- name: Check if tree is clean | |
run: | | |
set -ux | |
if [[ `git status --porcelain -uno` ]]; then | |
echo "Code is not in sync. Please run deno task build locally and then push again" | |
git status -uno | |
git diff | |
exit 1; | |
fi | |
- name: Publish package | |
run: npx jsr publish |