diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 0130ebbf..0f811c70 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -7,35 +7,36 @@ on: - gh-pages workflow_dispatch: +permissions: + contents: read + pages: write + id-token: write + jobs: github-pages: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} - restore-keys: | - ${{ runner.os }}-gems- - - uses: helaili/jekyll-action@v2.5 + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 with: - pre_build_commands: git config --global http.version HTTP/1.1; apk fetch git-lfs; - token: ${{ secrets.GITHUB_TOKEN }} - target_branch: 'gh-pages' + ruby-version: '3.5' + bundler-cache: true + - uses: actions/configure-pages@v5 + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + - uses: actions/upload-pages-artifact@v3 + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: github-pages + steps: + - uses: actions/deploy-pages@v4 + html-link-check: - needs: [github-pages] + needs: deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.5' - - name: Install any new ruby packages - run: make install - - name: Dependencies - run: make update - - name: Build site - run: make build - name: Check html run: make check