Skip to content

Bump JamesIves/github-pages-deploy-action from 4.5.0 to 4.6.3 #253

Bump JamesIves/github-pages-deploy-action from 4.5.0 to 4.6.3

Bump JamesIves/github-pages-deploy-action from 4.5.0 to 4.6.3 #253

Workflow file for this run

name: Build
on:
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ for more details.
# Using pull_request_target in order to grant dependabot access to run the test action.
pull_request_target:
branches-ignore:
- 'gh-pages'
types: [labeled] # for dependabot
push:
branches-ignore:
- 'gh-pages'
- 'dependabot/**'
workflow_dispatch:
branches-ignore:
- 'gh-pages'
inputs:
deploy:
description: 'Deploy: [true, false]'
required: true
default: 'false'
# ensure only one workflow per ref
# pull_request_target/push events commonly result in duplicate workflows being ran
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
if: >
contains(github.event.pull_request.labels.*.name, 'dependencies')
|| github.event_name == 'push'
|| github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest # currently ubuntu-22.04
- ubuntu-20.04
- macos-latest # currently macos-14, ARM based
- macos-latest-large # currently macos-14 Intel based
- macos-13
ruby:
- 2.7
- 3.0
- 3.1
- 3.2
- 3.3
- head
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1.173.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Rubocop
run: bin/rake rubocop
- name: Rspec tests
run: bin/rake spec
- name: Yard documents
run: bin/rake yard
build-deploy-docs:
needs: tests
if: >
contains(github.event.pull_request.labels.*.name, 'dependencies')
|| github.event_name == 'push'
|| github.event.inputs.deploy == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1.173.0
with:
ruby-version: 3.3
bundler-cache: true
- name: Yard documents
run: bin/rake yard
- name: Deploy pages
if: github.ref == 'refs/heads/master' # only push on master branch
uses: JamesIves/github-pages-deploy-action@v4.6.3
with:
branch: gh-pages
folder: doc
clean: true
clean-exclude: |
.gitattributes
.gitignore
LICENSE
# release-gem:
# needs: tests
# if: (github.event_name == 'push' || github.event.inputs.deploy == 'true')
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3.5.3
# with:
# persist-credentials: false
# - uses: ruby/setup-ruby@v1.152.0
# with:
# ruby-version: 3.2
# bundler-cache: true
# - name: Release new gem
# run: rake release[remote]