Skip to content

Fix pipeline by storing artifact #44

Fix pipeline by storing artifact

Fix pipeline by storing artifact #44

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
- feature/fix-pipeline-empty # todo: only for testing
env:
ARTIFACT_NAME: built-app
BUILD_DIRECTORY: ./build
jobs:
build:
name: Check Build
uses: ./.github/workflows/build.yml
with:
store-artifact: true
artifact-name: ${{ env.ARTIFACT_NAME }}

Check failure on line 19 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 19, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.ARTIFACT_NAME
deploy:
permissions:
contents: write
needs:
- build
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: $BUILD_DIRECTORY
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.BUILD_DIRECTORY }}