mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 31.9.0 to 31.9.1.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Changelog](https://github.com/cachix/install-nix-action/blob/master/RELEASE.md)
- [Commits](4e002c8ec8...2126ae7fc5)
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-version: 31.9.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
96 lines
3.2 KiB
YAML
96 lines
3.2 KiB
YAML
name: Build & deploy documentation on rs.delta.chat, c.delta.chat, and py.delta.chat
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- build_jsonrpc_docs_ci
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build-rs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
show-progress: false
|
|
persist-credentials: false
|
|
- name: Build the documentation with cargo
|
|
run: |
|
|
cargo doc --package deltachat --no-deps --document-private-items
|
|
- name: Upload to rs.delta.chat
|
|
run: |
|
|
mkdir -p "$HOME/.ssh"
|
|
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
|
|
chmod 600 "$HOME/.ssh/key"
|
|
rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/target/doc "${{ secrets.USERNAME }}@rs.delta.chat:/var/www/html/rs/"
|
|
|
|
build-python:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
show-progress: false
|
|
persist-credentials: false
|
|
fetch-depth: 0 # Fetch history to calculate VCS version number.
|
|
- uses: cachix/install-nix-action@2126ae7fc54c9df00dd18f7f18754393182c73cd # v31.9.1
|
|
- name: Build Python documentation
|
|
run: nix build .#python-docs
|
|
- name: Upload to py.delta.chat
|
|
run: |
|
|
mkdir -p "$HOME/.ssh"
|
|
echo "${{ secrets.CODESPEAK_KEY }}" > "$HOME/.ssh/key"
|
|
chmod 600 "$HOME/.ssh/key"
|
|
rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/result/html/ "delta@py.delta.chat:/home/delta/build/master"
|
|
|
|
build-c:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
show-progress: false
|
|
persist-credentials: false
|
|
fetch-depth: 0 # Fetch history to calculate VCS version number.
|
|
- uses: cachix/install-nix-action@2126ae7fc54c9df00dd18f7f18754393182c73cd # v31.9.1
|
|
- name: Build C documentation
|
|
run: nix build .#docs
|
|
- name: Upload to c.delta.chat
|
|
run: |
|
|
mkdir -p "$HOME/.ssh"
|
|
echo "${{ secrets.CODESPEAK_KEY }}" > "$HOME/.ssh/key"
|
|
chmod 600 "$HOME/.ssh/key"
|
|
rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/result/html/ "delta@c.delta.chat:/home/delta/build-c/master"
|
|
|
|
build-ts:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./deltachat-jsonrpc/typescript
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
show-progress: false
|
|
persist-credentials: false
|
|
fetch-depth: 0 # Fetch history to calculate VCS version number.
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '18'
|
|
- name: npm install
|
|
run: npm install
|
|
- name: npm run build
|
|
run: npm run build
|
|
- name: Run docs script
|
|
run: npm run docs
|
|
- name: Upload to js.jsonrpc.delta.chat
|
|
run: |
|
|
mkdir -p "$HOME/.ssh"
|
|
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
|
|
chmod 600 "$HOME/.ssh/key"
|
|
rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/deltachat-jsonrpc/typescript/docs/ "${{ secrets.USERNAME }}@js.jsonrpc.delta.chat:/var/www/html/js-jsonrpc/"
|