Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Draft PDF
on:
push:
paths:
- paper/**
- .github/workflows/draft-pdf.yml

jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: paper/paper.md
- name: Upload
uses: actions/upload-artifact@v4
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: paper/paper.pdf
100 changes: 50 additions & 50 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,26 @@ jobs:
cd dist/python
maturin build --release
# Publish Rust package to crates.io
publish-rust:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Sync packages
run: ./scripts/sync_packages.sh

- name: Publish to crates.io
run: |
cd dist/rust
cargo publish --allow-dirty
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
#publish-rust:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Setup Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
#
# - name: Sync packages
# run: ./scripts/sync_packages.sh
#
# - name: Publish to crates.io
# run: |
# cd dist/rust
# cargo publish --allow-dirty
# env:
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

# Publish JavaScript package to NPM and GitHub Packages
publish-javascript:
Expand Down Expand Up @@ -148,33 +148,33 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Publish Python package to PyPI
publish-python:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install maturin build twine

- name: Sync packages
run: ./scripts/sync_packages.sh

- name: Build and publish Python package
run: |
cd dist/python
maturin publish
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
#publish-python:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Setup Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
#
# - name: Setup Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.8'
#
# - name: Install Python dependencies
# run: |
# python -m pip install --upgrade pip
# pip install maturin build twine
#
# - name: Sync packages
# run: ./scripts/sync_packages.sh
#
# - name: Build and publish Python package
# run: |
# cd dist/python
# maturin publish
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
Loading