Skip to content

Commit

Permalink
fix: CI for build and publish
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Jan 5, 2024
1 parent 6b0b555 commit abf4059
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
- name: Install NPM dependencies
run: npm ci
- name: Build v1 and generate v1 index.json
run: npm run --workspace official-addons build
run: npm run --workspace stremio-official-addons build
- name: Build v2
run: npm run --workspace official-addons-v2 build
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ jobs:
# - name: Install NPM dependencies
# run: npm ci
# - name: Publish to NPM
# run: npm publish --workspace official-addons --access public
# run: npm publish --workspace stremio-official-addons --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
# - name: Publish to crates.io
# run: cargo publish --workspace official-addons --allow-dirty --token "$CARGO_AUTH_TOKEN"
# env:
# CARGO_AUTH_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }}

publish-v2:
if: ${{ startsWith(github.event.release.tag_name, 'v2') }}
Expand All @@ -52,6 +48,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish to crates.io
run: cargo publish --workspace official-addons-v2 --allow-dirty --token "$CARGO_AUTH_TOKEN"
run: cargo publish -p stremio-official-addons --allow-dirty --token "$CARGO_AUTH_TOKEN"
env:
CARGO_AUTH_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }}

0 comments on commit abf4059

Please sign in to comment.