Skip to content

Commit

Permalink
fix: 💚 Only generate joss draft on main, using poetry instead of pip
Browse files Browse the repository at this point in the history
  • Loading branch information
SongshGeo committed Feb 3, 2025
1 parent 9805663 commit fb8dafc
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 43 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/ci.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
on: [push]
on:
push:
branches:
- master
- main

jobs:
paper:
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/gh-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: gh-page
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Cache Poetry and dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
.venv
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install
set -e
poetry run pip install git+https://${{ secrets.MKDOCS_INSIDER }}@github.com/squidfunk/mkdocs-material-insiders.git
- name: Deploy documentation
run: poetry run mkdocs gh-deploy --force
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit fb8dafc

Please sign in to comment.