Skip to content

Commit

Permalink
[WIP] Introduce the preview workflow
Browse files Browse the repository at this point in the history
This is a first try towards migrating this task away from the bots.

The Git logic should be split off from the website generation logic
since they are distinct tasks and the former cannot and should not run
on GitHub Actions.
  • Loading branch information
timvandermeij committed Jul 31, 2021
1 parent 3ec1bac commit fe60c41
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Preview
on: [workflow_dispatch, push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js 14 LTS
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install Gulp
run: npm install -g gulp-cli

- name: Install other dependencies
run: npm install

- name: Generate website artifacts
run: gulp web

- name: Upload website artifacts
uses: actions/upload-artifact@v2
with:
name: GitHub Pages
path: build/gh-pages/*
retention-days: 1
3 changes: 1 addition & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1992,8 +1992,7 @@ gulp.task(
"generic-legacy",
"jsdoc",
ghPagesPrepare,
"wintersmith",
ghPagesGit
"wintersmith"
)
);

Expand Down

0 comments on commit fe60c41

Please sign in to comment.