Skip to content

Upload artifacts

Upload artifacts #16

Workflow file for this run

name: Build HTML content from source
on:
pull_request:
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup bundler cache
uses: actions/cache@v3
with:
key: ${{ runner.os }}-bundler-${{ hashFiles('Gemfile.lock') }}
path: .bundle/gems
- name: Setup build cache
uses: actions/cache@v3
with:
key: ${{ runner.os }}-build
path: __build
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install dependencies
run: |
bundle config set --local path '.bundle/gems'
bundle install
- name: Build with Middleman
run: |
mkdir -p __build
BUILD_OUTPUT="__build" bundle exec middleman build
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: build-${{ github.event.number }}
path: '__build/**/*'
retention-days: 30