Skip to content

Use vars instead of env for workflow variables #5

Use vars instead of env for workflow variables

Use vars instead of env for workflow variables #5

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
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: build

Check failure on line 24 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. .github/workflows/build-and-publish-main.yml (Line: 24, Col: 12): Job 'deploy' depends on unknown job '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