Skip to content

Commit

Permalink
create static output workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-ftf committed Sep 26, 2023
1 parent e9d5c25 commit 61c8b70
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/static_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Zip Site

on:
push:
branches:
- main

jobs:
build_and_zip:
runs-on: ubuntu-latest

steps:
- name: Checkout Source Repository
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1

- name: Install Dependencies
run: |
gem install bundler
bundle install
- name: Build Site
run: bundle exec jekyll build

- name: Compress Site
run: |
mkdir -p _static
zip -r _static/arrrrmada.zip _site
- name: Commit and Push Zip File
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add _static/arrrrmada.zip
git commit -m "Update _static/arrrrmada.zip" || echo "No changes to commit"
git push origin main # or the branch you are using
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
_config.yaml
_site
_static/*
!_static/arrrrmada.zip

0 comments on commit 61c8b70

Please sign in to comment.