File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ Do you want to skip the docker build step? OK, the script mode is available.
86
86
- [⭐️ Static Site Generators with Python](#%EF%B8%8F-static-site-generators-with-python)
87
87
- [⭐️ mdBook (Rust)](#%EF%B8%8F-mdbook-rust)
88
88
- [⭐️ Flutter Web](#%EF%B8%8F-flutter-web)
89
+ - [⭐️ Elm](#%EF%B8%8F-elm)
89
90
- [License](#license)
90
91
- [About the author](#about-the-author)
91
92
@@ -785,6 +786,48 @@ jobs:
785
786
PUBLISH_DIR: ./build/web
786
787
` ` `
787
788
789
+ # ## ⭐️ Elm
790
+
791
+ An exapmle workflow for [Elm] with [justgook/setup-elm].
792
+
793
+ [Elm] : https://elm-lang.org
794
+ [justgook/setup-elm] : https://github.com/justgook/setup-elm
795
+
796
+ ` ` ` yaml
797
+ name: github pages
798
+
799
+ on:
800
+ push:
801
+ branches:
802
+ - master
803
+
804
+ jobs:
805
+ build-deploy:
806
+ runs-on: ubuntu-latest
807
+ steps:
808
+ - uses: actions/checkout@v2
809
+
810
+ - name: Setup Elm
811
+ uses: justgook/setup-elm@v1
812
+
813
+ - name: Make
814
+ run: elm make --optimize src/Main.elm
815
+
816
+ - name: Move files
817
+ run: |
818
+ mkdir ./public
819
+ mv ./index.html ./public/
820
+ # If you have non-minimal setup with some assets and separate html/js files,
821
+ # provide --output=<output-file> option for ` elm make` and remove this step
822
+
823
+ - name : Deploy
824
+ uses : peaceiris/actions-gh-pages@v2
825
+ env :
826
+ ACTIONS_DEPLOY_KEY : ${{ secrets.ACTIONS_DEPLOY_KEY }}
827
+ PUBLISH_BRANCH : gh-pages
828
+ PUBLISH_DIR : ./public
829
+ ` ` `
830
+
788
831
## License
789
832
790
833
- [MIT License - peaceiris/actions-gh-pages]
You can’t perform that action at this time.
0 commit comments