Skip to content

Commit

Permalink
migrate to GH actions for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ov7a committed Oct 27, 2024
1 parent 182ef88 commit 19027e3
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/check-links.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "Check markdown links"
name: "Build and deploy"

on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:

Expand All @@ -18,6 +18,7 @@ jobs:

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Build
uses: actions/jekyll-build-pages@v1

Expand All @@ -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

0 comments on commit 19027e3

Please sign in to comment.