From 0166007662600d1b3a666610f9c8748a96921def Mon Sep 17 00:00:00 2001 From: Mark Lavi <5642075+mlavi@users.noreply.github.com> Date: Wed, 31 Jan 2024 19:56:31 -0600 Subject: [PATCH] Create npm-gulp.yml and deploy --- .github/workflows/npm-gulp.yml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/npm-gulp.yml diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml new file mode 100644 index 0000000..cfb022f --- /dev/null +++ b/.github/workflows/npm-gulp.yml @@ -0,0 +1,47 @@ +name: NodeJS with Gulp + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x, 18.x] + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + gulp + + - name: Deploy GitHub Pages site + uses: actions/deploy-pages@v4.0.3 + with: + # GitHub token + token: # default is ${{ github.token }} + # Time in milliseconds after which to timeout and cancel the deployment (default: 10 minutes) + timeout: # optional, default is 600000 + # Maximum number of status report errors before cancelling a deployment (default: 10) + error_count: # optional, default is 10 + # Time in milliseconds between two deployment status report (default: 5 seconds) + reporting_interval: # optional, default is 5000 + # Name of the artifact to deploy + artifact_name: kanister.io + # Is this attempting to deploy a pull request as a GitHub Pages preview site? (NOTE: This feature is only in alpha currently and is not available to the public!) + preview: false + + +