forked from bevyengine/bevy-website
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1.33 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy
on:
push:
branches: [master]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Cache multiple crates.io datadump
uses: actions/cache@v2
with:
path: generate-assets/data
key: ${{ runner.os }}-${{ steps.date.outputs.date }}
- name: "Build Bevy Assets"
run: cd generate-assets && ./generate_assets.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Build Bevy Error Codes"
run: cd generate-errors && ./generate_errors.sh
- name: "Build Bevy Community"
run: cd generate-community && ./generate_community.sh
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
- name: "Build Bevy Examples"
run: cargo install wasm-bindgen-cli && cd generate-wasm-examples && ./generate_wasm_examples.sh
- name: "Build and deploy website"
if: github.repository_owner == 'bevyengine'
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
TOKEN: ${{ secrets.CART_PAT }}