Skip to content

Workflow file for this run

name: Build with NodeJS and Gulp
on:
workflow_dispatch:
env:
BUILD_CONFIG: ${{ vars.BUILD_CONFIG }}

Check failure on line 6 in .github/workflows/npm-gulp.yml

View workflow run for this annotation

GitHub Actions / Build with NodeJS and Gulp

Invalid workflow file

The workflow is not valid. .github/workflows/npm-gulp.yml (Line: 6, Col: 21): Unrecognized named-value: 'vars'. Located at position 1 within expression: vars.BUILD_CONFIG
push:
branches: [ "staging", "master" ]
pull_request:
branches: [ "staging", "master" ]
jobs:
build:
runs-on: ubuntu-latest
if: ${{ vars.BUILD_CONFIG == 'kbharkiv-staging' }}
strategy:
matrix:
node-version: [17]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install node and gulp cli
run: |
npm install -g gulp-cli
npm install
gulp --version
- name: Run gulp
run: |
gulp build -p $BUILD_CONFIG
- name: Upload S3
uses: shallwefootball/[email protected]
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: dist
destination_dir: ${{ vars.DEPLOY_DIR }}