-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
_config.yaml | ||
_site | ||
_static/* | ||
!_static/arrrrmada.zip |