Skip to content

Fix needs in workflow #6

Fix needs in workflow

Fix needs in workflow #6

name: Build and publish main to Github Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
pages: write
jobs:
call-build:
uses: ProjektAdler/Documentation/.github/workflows/build.yml@main

Check failure on line 14 in .github/workflows/build-and-publish-main.yml

View workflow run for this annotation

GitHub Actions / Build and publish main to Github Pages

Invalid workflow file

The workflow is not valid. In .github/workflows/build-and-publish-main.yml (Line: 14, Col: 11): Error from called workflow ProjektAdler/Documentation/.github/workflows/build.yml@main (Line: 7, Col: 14): Unexpected value 'inherit'
with:
INSTANCE: ${{ vars.WRITERSIDE_WORKFLOW_INSTANCE }}
ARTIFACT: ${{ vars.WRITERSIDE_WORKFLOW_ARTIFACT }}
DOCKER_VERSION: ${{ vars.WRITERSIDE_WORKFLOW_DOCKER_VERSION }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: call-build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: docs
- name: Unzip artifact
run: unzip -O UTF-8 -qq ${{ vars.WRITERSIDE_WORKFLOW_ARTIFACT }} -d dir
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dir
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1