Skip to content

Commit

Permalink
add archive action
Browse files Browse the repository at this point in the history
  • Loading branch information
emuell committed Aug 2, 2024
1 parent 576e8dc commit 997b63c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 13 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/archive.yml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 14 additions & 13 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 997b63c

Please sign in to comment.