Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
uvlad7 committed Oct 11, 2023
1 parent a639464 commit 2e683d5
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ on:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
name: Yard on Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "2.7.8"
rust: ["nightly"]

steps:
- uses: actions/checkout@v3
Expand All @@ -21,28 +22,20 @@ jobs:
uses: oxidize-rb/actions/setup-ruby-and-rust@v1
with:
ruby-version: ${{ matrix.ruby }}
rustup-toolchain: ${{ matrix.rust }}
bundler-cache: true
cargo-cache: true
rubygems: "3.4.14"
- name: Build yard docs
run: YARD_OUTPUT_DIR="$RUNNER_TEMP/doc/" bundle exec rake yard
- name: Archive artifact
shell: sh
run: |
tar \
--dereference --hard-dereference \
--directory "$RUNNER_TEMP/doc/" \
-cvf "$RUNNER_TEMP/artifact.tar" \
.
- name: Upload artifact
uses: actions/upload-artifact@v3
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
name: ${{ inputs.name }}
path: ${{ runner.temp }}/artifact.tar
retention-days: ${{ inputs.retention-days }}
if-no-files-found: error
path: "$RUNNER_TEMP/doc"

deploy:
needs: build
name: Deploy gh-pages

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand Down

0 comments on commit 2e683d5

Please sign in to comment.