Implement newly documented features since the start of the rewrite. (… #374
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy dev docs to nyxx.l7ssha.xyz | |
on: | |
push: | |
branches: | |
- dev | |
- next | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Dart Action | |
uses: dart-lang/setup-dart@v1 | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.pub-cache | |
key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pubspec- | |
- name: Install dependencies | |
run: dart pub get | |
- name: Generate docs | |
run: dart doc | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- name: Deploy nyxx dev docs | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_SERVER_KEY }} | |
ARGS: "-rltDzvO" | |
SOURCE: "doc/api/" | |
REMOTE_HOST: ${{ secrets.DEPLOY_REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.DEPLOY_REMOTE_USER }} | |
TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx/${{ steps.extract_branch.outputs.branch }}/" |