This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Build with NodeJS and GulpInvalid workflow file
|
||
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 }} |