Skip to content

Commit

Permalink
Alright, documentation.yml is also a test now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ParadoxV5 committed Mar 23, 2024
1 parent 5d0acd2 commit a450895
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Generate Documentation with YARD
on:
push:
branches: [main]
paths:
- .github/workflows/documentation.yml
- .yardopts
- docs/**
- lib/**
- README.md
- Gemfile

concurrency:
group: pages
cancel-in-progress: true
pull_request:
paths:
- .github/workflows/documentation.yml
- .yardopts
- docs/**
- lib/**
- README.md
- Gemfile
jobs:

build:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:

- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/configure-pages@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3'
Expand All @@ -40,11 +40,18 @@ jobs:

deploy:
needs: build
if: github.ref_name == 'main'
environment:
name: github-pages
url: ${{ steps.deploy-pages.outputs.page_url }}
permissions: write-all
concurrency:
group: pages
cancel-in-progress: true
runs-on: ubuntu-latest
permissions: write-all
steps:

- uses: actions/configure-pages@v4

- id: deploy-pages
uses: actions/deploy-pages@v4

0 comments on commit a450895

Please sign in to comment.