Skip to content

LYS-17 create job docs #11

LYS-17 create job docs

LYS-17 create job docs #11

Workflow file for this run

name: Deploy photos
on:
push:
branches:
- master
- LYS-17-aggiungere-github-actions
jobs:
test:
uses: ./.github/workflows/test.yaml
deploy:
if: github.ref_name != master
needs:
- test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ 22 ]
steps:
- uses: actions/checkout@v4
# todo build steps
# deploy
- name: Pulumi dependencies
working-directory: pulumi
run: npm ci
- uses: pulumi/actions@v6
with:
command: up
stack-name: lysz210/photos/dev
work-dir: pulumi
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
docs:

Check failure on line 38 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / Deploy photos

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 38, Col: 5): Unexpected value 'docs'
needs:
- test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ 22 ]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Generate documentations
run: npm run docs
- name: Upload documentation to artifact
uses: actions/upload-artifact@v4
with:
name: docs
path: .reports