Skip to content

Commit

Permalink
fix: refactor to _site, upload-pages-artifact@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mlavi committed Feb 1, 2024
1 parent 1768e00 commit d986fc9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/npm-gulp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,11 @@ jobs:
npm install
gulp
- name: Deploy GitHub Pages site
uses: actions/[email protected]
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



- name: Fix permissions
run: |
chmod -c -R +rX "_site/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kanister.io
_site
node_modules
package-lock.json
# TODO: better sources?
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ var kanisterProdFiles = [
];

gulp.task('build-kanister', function() {
gutil.log(gutil.colors.green(`Copying files to kanister.io/ ...`));
gutil.log(gutil.colors.green(`Copying files to _site/ ...`));
return gulp
.src(kanisterProdFiles)
.pipe(gulp.dest('kanister.io/'));
.pipe(gulp.dest('_site/'));
});

// --------------------------------------------------
Expand Down

0 comments on commit d986fc9

Please sign in to comment.