diff --git a/.github/workflows/rustdocs.yml b/.github/workflows/rustdocs.yml new file mode 100644 index 0000000000..a58a3a8c2a --- /dev/null +++ b/.github/workflows/rustdocs.yml @@ -0,0 +1,60 @@ +name: Publish rustdocs + +on: + push: + branches: + - main + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: SubtensorCI + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install rustup + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Generate documentation + uses: actions-rs/cargo@v1 + with: + command: doc + args: --document-private-items + + - name: Fix file permissions + shell: sh + run: | + chmod -c -R +rX "target/doc" | + while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done + - name: Generate index.html file + run: | + echo "" > target/doc/index.html + - name: Upload documentation + uses: actions/upload-pages-artifact@v1 + with: + path: ./target/doc + + deploy: + needs: build + runs-on: SubtensorCI + + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.pages.outputs.page_url }} + + steps: + - name: Deploy documentation + id: pages + uses: actions/deploy-pages@v2 diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 7bc6f7ece1..e162af4487 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -209,7 +209,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 268, + spec_version: 269, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,