Skip to content

Commit

Permalink
Merge pull request #121 from maxammann/refactor-ci
Browse files Browse the repository at this point in the history
Refactor CI
  • Loading branch information
maxammann authored Jun 2, 2022
2 parents 8248d4b + 31fa4ed commit cdc3c0e
Show file tree
Hide file tree
Showing 34 changed files with 571 additions and 503 deletions.
32 changes: 0 additions & 32 deletions .github/actions/android/action.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/actions/apple/action.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/actions/benchmarks/action.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/actions/check/action.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/actions/demo/linux/action.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/actions/demo/macos/action.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/actions/demo/windows/action.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/actions/docs/action.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/actions/tests/action.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/actions/webgl/action.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/actions/webgpu/action.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build documentation

on:
workflow_call:
secrets:
SSH_KEY_MAXAMMANN_ORG:
required: false
inputs:
deploy:
required: true
type: boolean


jobs:
build-docs:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: extractions/setup-just@v1
- name: Install toolchain
shell: bash
run: just default-toolchain
- uses: Swatinem/rust-cache@v1
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
- name: Install Dependencies
shell: bash
run: sudo apt-get install -y libwayland-dev libxkbcommon-dev # Required for winit
- name: Build
working-directory: docs
shell: bash
run: mdbook build
- name: API Documentation
shell: bash
run: cargo doc -p maplibre --no-deps --lib --document-private-items
- uses: actions/upload-artifact@v2
with:
name: api-docs
path: target/doc/
- uses: actions/upload-artifact@v2
with:
name: book
path: docs/book/
deploy-docs:
needs: build-docs
if: inputs.deploy
name: Deploy
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v2
with:
name: api-docs
- uses: actions/download-artifact@v2
with:
name: book
- uses: ./.github/actions/deploy
with:
source: .
destination: api-docs
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
- uses: ./.github/actions/deploy
with:
source: .
destination: docs
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
Loading

0 comments on commit cdc3c0e

Please sign in to comment.