Skip to content

Commit

Permalink
fix publish ci
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Aug 23, 2024
1 parent 06df962 commit 1cf42b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,28 @@ jobs:
- name: "Build"
run: |
cargo wasix build --release
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: tantivy
path: target/wasm32-wasmer-wasi/release/tantivy.wasm

publish:
runs-on: ubuntu-22.04
if: ${{ github.ref == 'refs/heads/main' }}
# if: ${{ github.ref == 'refs/heads/main' }}
needs: build
name: "Publish"
steps:
- uses: actions/checkout@v4
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: tantivy
- name: Setup Wasmer
uses: wasmerio/setup-wasmer@v3.1
- name: List contents
run: |
ls
- name: "Publish"
run: |
wasmer package publish -vvvv --registry="wasmer.io" --namespace wasmer --name tantivy --bump --non-interactive --token=${{ secrets.WASMER_CIUSER_PROD_TOKEN }} .
Expand Down
2 changes: 1 addition & 1 deletion wasmer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Tantivy is a full-text search engine library inspired by Apache L

[[module]]
name = "tantivy"
source = "target/wasm32-wasmer-wasi/release/tantivy.wasm"
source = "tantivy.wasm"

[[command]]
name = "tantivy"
Expand Down

0 comments on commit 1cf42b2

Please sign in to comment.