Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add Jigsaw workflow example. #765

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Note that the `GITHUB_TOKEN` that is created by the runner might not inherently
- [⭐️ Flutter Web](#%EF%B8%8F-flutter-web)
- [⭐️ Elm](#%EF%B8%8F-elm)
- [⭐️ Swift Publish](#%EF%B8%8F-swift-publish)
- [⭐️ jigsaw](#%EF%B8%8F-jigsaw)
- [License](#license)
- [Maintainer](#maintainer)

Expand Down Expand Up @@ -1190,6 +1191,48 @@ jobs:
publish_dir: ./Output
```

### ⭐️ jigsaw

An example workflow for [jigsaw](https://github.com/tighten/jigsaw)

[tighten/jigsaw]: https://github.com/tighten/jigsaw

```yaml
name: GitHub Pages

on:
push:
branches:
- main
pull_request:

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Setup Node.js for use with actions
uses: actions/setup-node@v3
with:
version: 16.15.1

- name: Checkout branch
uses: actions/checkout@v3

- name: Clean install dependencies
run: npm ci

- name: Build Jigsaw
run: composer install

- name: Build app
run: npm run prod

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./build_production
```
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>
Expand Down