{"id":14962713,"url":"https://github.com/koddr/actions-sapper","last_synced_at":"2026-02-19T12:02:05.841Z","repository":{"id":65162102,"uuid":"270205907","full_name":"koddr/actions-sapper","owner":"koddr","description":":octocat: GitHub Action for generating a static website with Sapper. ","archived":false,"fork":false,"pushed_at":"2020-06-22T21:55:01.000Z","size":42,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-18T01:35:02.058Z","etag":null,"topics":["action","actions","demo","github-actions","github-page","sapper","sapper-app","static","static-site-generator","static-website","svelte","svelte-v3","svelte3"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/sapper-action","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koddr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-07T05:42:00.000Z","updated_at":"2023-10-28T14:34:57.000Z","dependencies_parsed_at":"2023-01-04T12:39:05.034Z","dependency_job_id":null,"html_url":"https://github.com/koddr/actions-sapper","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"ef6c5206a7458a1654585c1626b332d5f720cb6a"},"previous_names":["truewebartisans/actions-sapper"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/koddr/actions-sapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Factions-sapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Factions-sapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Factions-sapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Factions-sapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koddr","download_url":"https://codeload.github.com/koddr/actions-sapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Factions-sapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29612509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T10:52:55.328Z","status":"ssl_error","status_checked_at":"2026-02-19T10:52:26.323Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","actions","demo","github-actions","github-page","sapper","sapper-app","static","static-site-generator","static-website","svelte","svelte-v3","svelte3"],"created_at":"2024-09-24T13:30:24.748Z","updated_at":"2026-02-19T12:02:05.824Z","avatar_url":"https://github.com/koddr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :octocat: GitHub Action for Sapper\n\nUse this action to build your static website with [Sapper](https://sapper.svelte.dev/).\n\n![GitHub Action for Sapper](.github/gh-cover.png)\n\n## ☝️ How to use?\n\nTo use it, create a `.github/workflows/sapper_build.yml` file in your Sapper-based website repository as an action.\n\n\u003e 📌 **Tip**: read [this article](https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idsteps) to more understand GitHub Actons steps.\n\n## ⚙️ Inputs\n\nThis action accepts a couple of _optional_ inputs:\n\n| Input Name   | Required? | Default      | Description                                |\n| ------------ | :-------: | ------------ | ------------------------------------------ |\n| `build_mode` |    No     | `\"export\"`   | Build mode to the Sapper                   |\n| `args`       |    No     | `none` | Arguments to pass to the Sapper invocation |\n\nFor example:\n\n```yaml\n- name: Build\n  uses: truewebartisans/actions-sapper@master\n  with:\n    build_mode: \"export\"\n    args: \"--legacy --entry about\"\n```\n\n## 👀 More complex examples\n\nThese are examples, which _builds the website_ with this action, then deploys with another action.\n\n### 💡 Deploy to GitHub Pages\n\n- Deploy action: [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages)\n\n```yaml\nname: Build Sapper and Deploy to GitHub Pages\n\non: [push]\n\njobs:\n  build_deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - name: Build Sapper\n        uses: truewebartisans/actions-sapper@master\n      - name: Deploy to GitHub Pages\n        uses: peaceiris/actions-gh-pages@master\n        with:\n          publish_dir: __sapper__/export\n          publish_branch: gh-pages\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n#### 📺 GitHub Pages demo repository\n\nThis demo for Sapper-based website was build with `export` flag and deployed to GitHub Pages from `gh-pages` branch.\n\n- Repository: https://github.com/truewebartisans/actions-sapper-demo\n- Live result: https://sapper-action.gh.1wa.co\n\n### 💡 Deploy to remote virtual server (VDS/VPS/Droplet) via SSH\n\n- Deploy action: [appleboy/scp-action](https://github.com/appleboy/scp-action)\n\n```yaml\nname: Build Sapper and Deploy to remote virtual server via SSH\n\non: [push]\n\njobs:\n  build_deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - name: Build Sapper\n        uses: truewebartisans/actions-sapper@master\n        with:\n          build_mode: \"build\"\n      - name: Deploy to remote virtual server via SSH\n        uses: appleboy/scp-action@master\n        with:\n          host: ${{ secrets.REMOTE_HOST }}\n          username: ${{ secrets.REMOTE_USER }}\n          key: ${{ secrets.SSH_KEY }}\n          passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}\n          rm: true\n          source: __sapper__/build/\n          target: ${{ secrets.REMOTE_DIR }}\n```\n\n## 📚 License\n\nMIT \u0026copy; [Vic Shóstak](https://github.com/koddr) \u0026 [True web artisans](https://1wa.co/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoddr%2Factions-sapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoddr%2Factions-sapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoddr%2Factions-sapper/lists"}