https://github.com/siteleaf/actions-save-files
Action to save files from GitHub Actions to Siteleaf Preview
https://github.com/siteleaf/actions-save-files
Last synced: 7 days ago
JSON representation
Action to save files from GitHub Actions to Siteleaf Preview
- Host: GitHub
- URL: https://github.com/siteleaf/actions-save-files
- Owner: siteleaf
- Created: 2026-07-08T18:57:32.000Z (12 days ago)
- Default Branch: main
- Last Pushed: 2026-07-08T20:32:07.000Z (12 days ago)
- Last Synced: 2026-07-08T21:07:07.440Z (12 days ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# siteleaf/actions-save-files
Action to save files from GitHub Actions to Siteleaf Preview
Example usage:
```yaml
# .github/workflows/preview.yml
name: Build preview with Jekyll and Siteleaf
on:
push:
branches:
- preview # Build previews for "preview" branch
pull_request: # Build previews for PRs
workflow_dispatch: # Build manually from the Actions tab
permissions:
contents: read
id-token: write # Required for siteleaf/actions-save-files
pull-requests: write # Required for auto Preview URL in PR comments
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v7
- name: Setup Ruby # Required only if using Jekyll
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2" # Not needed with .ruby-version, .tool-versions, etc
bundler-cache: true # Runs 'bundle install' and caches installed gems
- name: Build Jekyll site # Replace with your custom build steps
env:
JEKYLL_ENV: staging
run: |
bundle exec jekyll build \
--future \
--unpublished \
--drafts
- name: Deploy to Siteleaf
uses: siteleaf/actions-save-files@v1
with:
publish_dir: _site # Optional (defaults to _site)
compare_size_only: true # Optional (faster)
```