mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 14:43:21 +08:00
parent
37729f1bb3
commit
c77e021886
43
README.md
43
README.md
@ -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)
|
- [⭐️ Static Site Generators with Python](#%EF%B8%8F-static-site-generators-with-python)
|
||||||
- [⭐️ mdBook (Rust)](#%EF%B8%8F-mdbook-rust)
|
- [⭐️ mdBook (Rust)](#%EF%B8%8F-mdbook-rust)
|
||||||
- [⭐️ Flutter Web](#%EF%B8%8F-flutter-web)
|
- [⭐️ Flutter Web](#%EF%B8%8F-flutter-web)
|
||||||
|
- [⭐️ Elm](#%EF%B8%8F-elm)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
- [About the author](#about-the-author)
|
- [About the author](#about-the-author)
|
||||||
|
|
||||||
@ -785,6 +786,48 @@ jobs:
|
|||||||
PUBLISH_DIR: ./build/web
|
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
|
## License
|
||||||
|
|
||||||
- [MIT License - peaceiris/actions-gh-pages]
|
- [MIT License - peaceiris/actions-gh-pages]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user