Skip to content

Bump actions/download-artifact from 4.1.7 to 4.1.8 #4239

Bump actions/download-artifact from 4.1.7 to 4.1.8

Bump actions/download-artifact from 4.1.7 to 4.1.8 #4239

Workflow file for this run

---
on:
pull_request:
push:
branches-ignore:
- gh-pages
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: ruby/setup-ruby@6615b4b8a02c78c4d711c06df4b8a20aa685a45d
with:
bundler-cache: true
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: '16'
- name: Cache node modules
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: npm-${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-${{ runner.os }}-build-${{ env.cache-name }}-
npm-${{ runner.os }}-build-
npm-
- name: Install NPM dependencies
run: npm install
- name: Test
run: bundle exec rspec
- name: Lint
run: bundle exec rubocop --parallel
- name: Validate schema
run: bundle exec rake schema
- name: Build
run: bundle exec rake build
- name: Upload built site
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
with:
name: site
path: build
retention-days: 1
htmlproofer:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: ruby/setup-ruby@6615b4b8a02c78c4d711c06df4b8a20aa685a45d
with:
bundler-cache: true
- name: Download built site
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: site
path: build
- name: Test built site
run: bundle exec rake htmlproofer
publish:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: ruby/setup-ruby@6615b4b8a02c78c4d711c06df4b8a20aa685a45d
with:
bundler-cache: true
- name: Download built site
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: site
path: build
# Checkout stripped-down gh-pages branch to a subdirectory, for publishing
- name: Checkout gh-pages branch
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
ref: gh-pages
path: tmp/publish
- name: Publish
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions"
bundle exec rake publish CLONED_GH_PAGES_DIR="tmp/publish"