This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
Bump crazy-max/ghaction-github-status from 2 to 4 #109
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: website | |
on: | |
pull_request: | |
branches: | |
- dev | |
push: | |
branches: | |
- dev | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
- | |
name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 11 | |
- | |
name: Set up Ruby | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 2.6.x | |
- | |
name: Set up gems cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gem- | |
- | |
name: Set up node_modules cache | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- | |
name: Set up Bundler | |
run: | | |
gem uninstall -aIx bundler | |
gem install bundler -v 2.0.2 | |
- | |
name: Yarn install | |
run: | | |
npm install -g yarn | |
yarn install --frozen-lockfile | |
- | |
name: Bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- | |
name: Build | |
env: | |
JEKYLL_ENV: production | |
JEKYLL_LOG_LEVEL: info | |
NOKOGIRI_USE_SYSTEM_LIBRARIES: true | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gulp --env=production build | |
#htmlproofer ./web/download --allow-missing-href --allow-hash-href --assume_extension --check-favicon --http-status-ignore 403 --only-4xx --alt-ignore "/.*/" --log-level=:debug | |
- | |
name: Check GitHub Pages status | |
uses: crazy-max/ghaction-github-status@v4 | |
with: | |
pages_threshold: major_outage | |
- | |
name: Deploy | |
if: success() && github.event_name != 'pull_request' | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
target_branch: master | |
build_dir: web | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |