From 2e683d5770d1898dcf037de477d177e28f4fb0c9 Mon Sep 17 00:00:00 2001 From: uvlad7 Date: Wed, 11 Oct 2023 03:26:42 +0300 Subject: [PATCH] Try again --- .github/workflows/docs.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0acffd2..87221de 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 @@ -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: