Attempt to fix GitHub CI release script

pull/51/head
Tpt 4 years ago
parent 519d74f7b2
commit 2639d9022c
  1. 26
      .github/workflows/release.yml
  2. 2
      python/Cargo.toml

@ -31,7 +31,7 @@ jobs:
tag_with_ref: true tag_with_ref: true
tags: latest tags: latest
add_git_labels: true add_git_labels: true
publish_crates: publish_lib_crate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -41,21 +41,39 @@ jobs:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo publish - run: cargo publish
working-directory: ./lib working-directory: ./lib
publish_server_crate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup update
- run: cargo login $CRATES_IO_TOKEN
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo publish - run: cargo publish
working-directory: ./server working-directory: ./server
publish_wikibase_crate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup update
- run: cargo login $CRATES_IO_TOKEN
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo publish - run: cargo publish
working-directory: ./wikibase working-directory: ./wikibase
publish_pypi: publish_pypi:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: publish_lib_crate
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: sed -i 's/path="..\/lib", //g' python/Cargo.toml
- run: docker run --rm -v $(pwd):/io konstin2/maturin build --release - run: docker run --rm -v $(pwd):/io konstin2/maturin build --release
working-directory: ./python working-directory: ./python
- uses: pypa/gh-action-pypi-publish@v1 - uses: pypa/gh-action-pypi-publish@v1.3.1
with: with:
user: __token__ user: __token__
password: ${{ secrets.PYPI_PASSWORD }} password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./python/dist packages_dir: ./python/target/wheels
publish_npm: publish_npm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -63,6 +81,8 @@ jobs:
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: '12' node-version: '12'
- run: rustup update
- run: cargo install wasm-pack
- run: npm install - run: npm install
working-directory: ./js working-directory: ./js
- run: npm run build - run: npm run build

@ -15,7 +15,7 @@ name = "pyoxigraph"
doctest = false doctest = false
[dependencies] [dependencies]
oxigraph = {version = "0.1", path="../lib", features = ["sled"]} oxigraph = {version = "0.1.1", path="../lib", features = ["sled"]}
pyo3 = {version = "0.11", features = ["extension-module"]} pyo3 = {version = "0.11", features = ["extension-module"]}
[package.metadata.maturin] [package.metadata.maturin]

Loading…
Cancel
Save