Fix doc tests #169
Workflow file for this run
This file contains hidden or 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: Website | |
| on: push | |
| env: | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| build_test_deploy: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v1 | |
| - name: Install node v18 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install stable Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: 1.81.0 | |
| - name: Install cargo-make | |
| uses: davidB/rust-cargo-make@v1 | |
| with: | |
| version: "0.35.1" | |
| - name: Install wasm-pack | |
| uses: jetli/wasm-pack-action@v0.3.0 | |
| with: | |
| version: "v0.13.0" | |
| - name: Install Node dependencies | |
| run: yarn | |
| working-directory: ./zia-lang.org | |
| - name: Build | |
| run: yarn build:release | |
| env: | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| working-directory: ./zia-lang.org | |
| - name: Install Netlify CLI | |
| if: github.ref == 'refs/heads/master' | |
| run: sudo npm install netlify-cli@17.38.1 -g | |
| - name: Deploy | |
| if: github.ref == 'refs/heads/master' | |
| env: | |
| NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
| NETLIFY_ACCESS_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN }} | |
| run: sudo netlify deploy -s $NETLIFY_SITE_ID --auth $NETLIFY_ACCESS_TOKEN -p --dir ./zia-lang.org/dist |