diff --git a/.github/workflows/archive.yml b/.github/workflows/archive.yml new file mode 100644 index 0000000..076e58e --- /dev/null +++ b/.github/workflows/archive.yml @@ -0,0 +1,35 @@ +name: Build and Archive XRNX_Starter_Pack.zip + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + + - name: Build the book + run: | + ./generate/build.sh "3.9.3" "" + cargo install mdbook + cargo install mdbook-linkcheck + mdbook build + + - name: Create XRNX_Starter_Pack + run: | + mkdir dist + cp -rf book dist/docs + cp -rf tools dist/tools + cd dist && zip -r -q ../XRNX_Starter_Pack.zip . + + - name: Archive + uses: actions/upload-artifact@v4 + with: + name: Archive + path: XRNX_Starter_Pack.zip diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index ea68c4c..9268a71 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,27 +1,28 @@ name: Build and Deploy mdBook - -on: - push: - branches: - - markdown +on: [push] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 with: submodules: recursive - - uses: actions-rust-lang/setup-rust-toolchain@v1 - - run: ./generate/build.sh "3.9.3" "/xrnx/" - - run: cargo install mdbook - - run: cargo install mdbook-linkcheck - - name: Build the book - run: mdbook build + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 - - uses: actions/upload-pages-artifact@v3 + - name: Build the book + run: | + ./generate/build.sh "3.9.3" "/xrnx/" + cargo install mdbook + cargo install mdbook-linkcheck + mdbook build + + - name: Upload + uses: actions/upload-pages-artifact@v3 with: name: github-pages path: ./book