Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: Add elm example workflow (#65)
* Add elm section to README.md
  • Loading branch information
VladimirLogachev authored and Shohei Ueda committed Jan 12, 2020
1 parent 37729f1 commit c77e021
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Expand Up @@ -86,6 +86,7 @@ Do you want to skip the docker build step? OK, the script mode is available.
- [⭐️ Static Site Generators with Python](#%EF%B8%8F-static-site-generators-with-python)
- [⭐️ mdBook (Rust)](#%EF%B8%8F-mdbook-rust)
- [⭐️ Flutter Web](#%EF%B8%8F-flutter-web)
- [⭐️ Elm](#%EF%B8%8F-elm)
- [License](#license)
- [About the author](#about-the-author)

Expand Down Expand Up @@ -785,6 +786,48 @@ jobs:
PUBLISH_DIR: ./build/web
```

### ⭐️ Elm

An exapmle workflow for [Elm] with [justgook/setup-elm].

[Elm]: https://elm-lang.org
[justgook/setup-elm]: https://github.com/justgook/setup-elm

```yaml
name: github pages

on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Elm
uses: justgook/setup-elm@v1

- name: Make
run: elm make --optimize src/Main.elm

- name: Move files
run: |
mkdir ./public
mv ./index.html ./public/
# If you have non-minimal setup with some assets and separate html/js files,
# provide --output=<output-file> option for `elm make` and remove this step

- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
```

## License

- [MIT License - peaceiris/actions-gh-pages]
Expand Down

0 comments on commit c77e021

Please sign in to comment.