Deploy docs action fix branch name extraction #502
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: | |
- next | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Dart Action | |
uses: dart-lang/setup-dart@v1 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache | |
uses: actions/cache@v4 | |
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: Deploy nyxx dev docs | |
uses: easingthemes/[email protected] | |
env: | |
ARGS: "-rltDzvO" | |
SOURCE: "doc/api/" | |
TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx/${{ github.head_ref || github.ref_name }}/" | |
with: | |
REMOTE_HOST: ${{ secrets.DEPLOY_REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.DEPLOY_REMOTE_USER }} | |
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_SERVER_KEY }} |