diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b022d92..243c7c4 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,59 +1,18 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages +name: Deploy yard to Pages on: - # Runs on pushes targeting the default branch push: branches: - main - - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - jobs: - # Single deploy job since we're just deploying deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 - with: - ruby-version: ruby - bundler-cache: true - - - run: bundle exec yard - - - name: Setup Pages - uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - - name: Upload artifact - uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 - with: - # Upload entire repository - path: './doc' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 - - - name: Slack Notification (not success) - uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2 - if: "! success()" - continue-on-error: true - with: - status: ${{ job.status }} - webhook-url: ${{ secrets.SLACK_WEBHOOK }} + uses: sue445/workflows/.github/workflows/pages-yard.yml@main + secrets: + slack-webhook: ${{ secrets.SLACK_WEBHOOK }}