Skip to content

Commit

Permalink
build: switch from deprecated helaili/jekyll-action to custom workflo…
Browse files Browse the repository at this point in the history
…w using JamesIves/github-pages-deploy-action and rename deploy.yml to build.yml, copied from snik.eu
  • Loading branch information
KonradHoeffner committed Oct 9, 2024
1 parent dc83693 commit 3f08e6c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 51 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Deploy

on:
workflow_dispatch:
push:
branches:
- master

jobs:
build-and-deploy:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Ruby and dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: '3'
bundler-cache: true

- name: Build static HTML
run: bundle exec jekyll build

- name: Deploy static HTML to the "static" branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: static
folder: _site
single-commit: true
51 changes: 0 additions & 51 deletions .github/workflows/deploy.yml

This file was deleted.

0 comments on commit 3f08e6c

Please sign in to comment.