Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Build rust docs (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa authored Sep 22, 2021
1 parent 73be178 commit 0b352b2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build-release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build rust docs
run: cargo doc --all --no-deps --release
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install vercel
run: npm i -g vercel
- name: Deploy rust docs
run: |
mv vercel.json target/doc
mv target/doc target/${GITHUB_REPOSITORY#*/}
cd target/${GITHUB_REPOSITORY#*/}
vercel --token ${{ secrets.VERCEL_TOKEN }} --scope itering link --confirm
vercel --token ${{ secrets.VERCEL_TOKEN }} --scope itering deploy --prod
5 changes: 5 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"redirects": [
{ "source": "/", "destination": "/drml" }
]
}

0 comments on commit 0b352b2

Please sign in to comment.