[Feature] Program execution in Aleo Typescript & Javascript SDKs #701
Workflow file for this run
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
name: Test Website Deploy | |
on: [pull_request] | |
jobs: | |
test-deploy: | |
name: Test SDK Website | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# with: | |
# persist-credentials: false | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly-2023-05-24 | |
override: true | |
components: rustfmt, rust-src | |
- uses: jetli/[email protected] | |
with: | |
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') | |
version: 'latest' | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-website-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install and Build | |
run: | | |
rustup component add rust-src | |
cd website | |
npm install | |
npm run build | |
cp _headers dist/_headers | |
cp _redirects dist/_redirects | |
env: | |
CI: "" | |
- name: Test Deploy | |
id: unmodified | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: website/dist | |
clean-exclude: '["dev"]' | |
dry-run: true | |
- name: Check step output | |
run: | | |
[[ \ | |
${{steps.unmodified.outputs.deployment-status}} = skipped || \ | |
${{steps.unmodified.outputs.deployment-status}} = success \ | |
]] |