Skip to content

Commit

Permalink
Merge pull request #97 from OpenFreeEnergy/gh-actions
Browse files Browse the repository at this point in the history
Add an action to build the page & upload it as an artifact.
  • Loading branch information
atravitz authored Feb 4, 2025
2 parents e957b12 + b3d2dc1 commit 5f8ee73
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_page.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: GH Actions CI
on:
push:
branches:
- main
pull_request:
branches:
- main

concurrency:
# Probably overly cautious group naming.
# Commits to develop will cancel each other, but PRs will only cancel
# commits within the same PR
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}"
cancel-in-progress: true

defaults:
run:
shell: bash -l {0}

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
retention-days: "1"

0 comments on commit 5f8ee73

Please sign in to comment.