Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/bors.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use_squash_merge = true
cut_body_after = "_ _ _"
pr_status = [
"Validate conventional PR title",
]
status = [
"Lint commit message",
"Check Rust formatting",
"Clippy correctness checks (%)",
"Build Docs",
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/bors-commit-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint commit message
on:
push:
branches:
- staging
- trying

jobs:
commitlint:
name: Lint commit message
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: wagoid/commitlint-github-action@v5
with:
commitDepth: 1
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ jobs:
matrix:
config:
- { target: "x86_64-unknown-linux-gnu", target_dir: "target" }
# Disable WASM Target until we fix WASM compile
# - { target: 'wasm32-unknown-unknown', target_dir: 'web-target' }
- { target: 'wasm32-unknown-unknown', target_dir: 'web-target' }
steps:
- name: Install dependencies
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ jobs:

- name: Build Rustdoc
run: |
cargo doc --no-deps -p bones_matchmaker_proto
cargo doc --no-deps
cargo doc --workspace --no-deps
mv target/doc book/src/developers/rustdoc

- name: Build MDBook
Expand All @@ -59,8 +58,9 @@ jobs:
mdbook build

- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
uses: JamesIves/github-pages-deploy-action@4.1.3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/dist
branch: gh-pages
folder: ./book/dist
target-folder: book
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Lint PR"
name: Pull Requests

on:
pull_request_target:
Expand All @@ -14,4 +14,4 @@ jobs:
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 changes: 17 additions & 23 deletions .github/workflows/web-demo.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Publish Web Demo

on:
- workflow_dispatch
# Disable temporarily while web build is broken
#
# push:
# tags:
# - "v*"
# branches:
# - bevy-rewrite
# - main
push:
tags:
- "v*"
branches:
- main

jobs:
publish-web-demo:
Expand Down Expand Up @@ -49,19 +45,17 @@ jobs:
branch: gh-pages
folder: web-target/wasm-release
target-folder: player/${{ github.ref_name }}
ssh-key: ${{ secrets.MASTER_GH_PAGES_DEPLOY_KEY }}

# - name: Symlink Latest Build
# run: |
# mkdir latest-symlink-dir
# ln -s ./${{ github.ref_name }} latest
# mv latest latest-symlink-dir
- name: Symlink Latest Build
run: |
mkdir latest-symlink-dir
ln -s ./${{ github.ref_name }} latest
mv latest latest-symlink-dir

# - name: Deploy Symlinked Latest Build 🚀
# uses: JamesIves/github-pages-deploy-action@4.1.3
# with:
# branch: gh-pages
# folder: latest-symlink-dir
# clean: false
# target-folder: player
# ssh-key: ${{ secrets.MASTER_GH_PAGES_DEPLOY_KEY }}
- name: Deploy Symlinked Latest Build 🚀
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
branch: gh-pages
folder: latest-symlink-dir
clean: false
target-folder: player
Loading