Skip to content

ci: input -> inputs #55

ci: input -> inputs

ci: input -> inputs #55

Workflow file for this run

---
name: Deploy
on:
push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run lint
- name: Set BASE_URL
id: set-base-url
run: |
if [[ ${{ github.ref }} == refs/heads/main ]]; then
echo "BASE_URL=https://deepumohan.com" >> $GITHUB_ENV
else
echo "BASE_URL=https://staging.deepumohan.com" >> $GITHUB_ENV
fi
- run: npm run generate
- name: upload dist
uses: actions/upload-artifact@v3
with:
name: dist
path: .output
html-proofer:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download dist
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: HTMLProofer
uses: chabad360/htmlproofer@v2
with:
directory: dist/public
arguments: --ignore-urls "https://twitter.com/deepumohanp,https://www.linkedin.com/in/deepumohanp/,/tech/,/cv/"
staging:
needs: html-proofer
uses: ./.github/workflows/deployment.yaml
with:
environment: staging

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

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 64, Col: 20): Invalid input, environment is not defined in the referenced workflow.
s3-bucket: staging.deepumohan.com
secrets:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_STAGING }}
production:
if: github.ref == 'refs/heads/main'
needs: staging
uses: ./.github/workflows/deployment.yaml
with:
environment: production
s3-bucket: deepumohan.com
secrets:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_PRODUCTION }}