forked from mozilla/pdf.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Introduce the preview workflow
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
1 parent
3ec1bac
commit fe60c41
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
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
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 |
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