diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62f53e26..88bd4f33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,6 @@ jobs: - run: bundle exec rubocop verify-links: - needs: [lint] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -24,7 +23,6 @@ jobs: - run: bin/verify-links test: - needs: [verify-links] strategy: matrix: ruby: ["3.2", "3.3"] @@ -39,7 +37,7 @@ jobs: coverage: if: github.event_name == 'push' - needs: [test] + needs: [lint, verify-links, test] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..fb706c12 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,27 @@ +name: docs + +on: + push: + branches: + - main + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +permissions: + id-token: write + pages: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.3" + bundler-cache: true + - run: bundle exec rake yard + - uses: actions/upload-pages-artifact@v3 + with: + path: doc/ + - uses: actions/deploy-pages@v4