Skip to content

Merge pull request #1063 from taichi-ishitani/unexpected_unassigned_v… #70

Merge pull request #1063 from taichi-ishitani/unexpected_unassigned_v…

Merge pull request #1063 from taichi-ishitani/unexpected_unassigned_v… #70

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
tags:
- 'v*.*.*'
jobs:
std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Setup veryl
run: cargo install --path crates/veryl
- name: Build doc
run: veryl doc
working-directory: crates/std/veryl
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: std
path: crates/std/veryl/target/doc/
deploy:
if: startsWith(github.ref, 'refs/tags/v')
needs: [std]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download std
uses: actions/download-artifact@v4
with:
name: std
path: public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: std.veryl-lang.org
deploy-nightly:
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
needs: [std]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download std
uses: actions/download-artifact@v4
with:
name: std
path: public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: std.veryl-lang.org
destination_dir: nightly