Skip to content

try again to get workflow registered #1

try again to get workflow registered

try again to get workflow registered #1

Workflow file for this run

name: deploy-docs
on:
push:
workflow_call:
workflow_dispatch:
inputs:
name:
env:
CARGO_TERM_COLOR: always
jobs:
deploy-api-docs:

Check failure on line 14 in .github/workflows/deploy-docs.yml

View workflow run for this annotation

GitHub Actions / deploy-docs

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-docs.yml (Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
name: Deploy API documentation
runs-on: bwrc
needs: [ check-workspace ]
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@ddcac349402ef55840d9870785f4df1890768078
- run: just build
working-directory: docs/api
# TODO: Make sure to remove the secret exposure!
- run: |
echo ${{ secrets.FLY_API_TOKEN_API }} >> secrets.txt && |
rm -rf /tools/C/rohankumar/substrate_docs_public/api/${{ inputs.name || github.ref_name }} && |
cp -r target/doc /tools/C/rohankumar/substrate_docs_public/api/${{ inputs.name || github.ref_name }}
working-directory: docs/api
- run: flyctl deploy --remote-only --detach
working-directory: /tools/C/rohankumar/substrate_docs_public/api
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_API }}
deploy-docs:
name: Deploy documentation
runs-on: bwrc
needs: [ check-workspace ]
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: docs/docusaurus/yarn.lock
- run: yarn install
working-directory: docs/docusaurus
- run: yarn build
working-directory: docs/docusaurus
# TODO: Make sure to remove the secret exposure!
- run: |
echo ${{ secrets.FLY_API_TOKEN_DOCS }} >> secrets.txt && |
rm -rf /tools/C/rohankumar/substrate_docs_public/docusaurus/branch/${{ inputs.name || github.ref_name }} && |
cp -r target/doc /tools/C/rohankumar/substrate_docs_public/docusaurus/branch/${{ inputs.name || github.ref_name }}
working-directory: docs/docusaurus
- run: flyctl deploy --remote-only --detach
working-directory: /tools/C/rohankumar/substrate_docs_public/docusaurus
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_DOCS }}