-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move rust v2 of the package/crate to master
- Loading branch information
Showing
11 changed files
with
2,099 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 12 | ||
cache: 'npm' | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Set default rust toolchain | ||
run: rustup default 1.61.0 | ||
- name: Change directory | ||
run: cd official-addons-rs | ||
- name: Install NPM dependencies | ||
run: npm ci | ||
- name: Build | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 12 | ||
cache: 'npm' | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Set default rust toolchain | ||
run: rustup default 1.61.0 | ||
- name: Change directory | ||
run: cd official-addons-rs | ||
- name: Install NPM dependencies | ||
run: npm ci | ||
- name: Build | ||
run: npm run build | ||
- name: Publish to NPM | ||
run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
- name: Publish to crates.io | ||
run: cargo publish --allow-dirty --token "$CARGO_AUTH_TOKEN" | ||
env: | ||
CARGO_AUTH_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/.github | ||
/scripts | ||
/src | ||
/target | ||
**/Cargo.toml | ||
**/Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/addons.json | ||
/node_modules | ||
**/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[package] | ||
name = "stremio-official-addons" | ||
description = "All of the stremio official addons" | ||
version = "2.0.11" | ||
authors = ["Smart Code OOD"] | ||
edition = "2018" | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/Stremio/stremio-official-addons" | ||
include = [ | ||
"/src/**/*.rs", | ||
"/Cargo.toml", | ||
"/addons.json", | ||
"/README.md" | ||
] | ||
|
||
[lib] | ||
doctest = false | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# stremio-official-addons | ||
|
||
All of the stremio official addons. | ||
|
||
## Build | ||
|
||
To re-generate `addons.json` you can run `npm run build` | ||
|
||
## Changing the official addons collection | ||
|
||
To change what's contained in this module, you have to change `scripts/build.js` | ||
|
||
Besides changing this module, you have to update all it's dependant packages. |
Oops, something went wrong.