diff --git a/.github/workflows/check-links.yml b/.github/workflows/deploy.yml similarity index 53% rename from .github/workflows/check-links.yml rename to .github/workflows/deploy.yml index e3b0cf6..2afecf0 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,9 @@ -name: "Check markdown links" +name: "Build and deploy" on: push: branches: - - main + - master pull_request: workflow_dispatch: @@ -18,6 +18,7 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 + - name: Build uses: actions/jekyll-build-pages@v1 @@ -28,3 +29,23 @@ jobs: args: > --no-progress --include-fragments --offline '_site' --exclude '##?$' + + - name: Upload artifact + id: deployment + uses: actions/upload-pages-artifact@v3 + with: + path: _site/ + + deploy: + needs: build-and-check + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4