Skip to content
Merged
Show file tree
Hide file tree
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
35 changes: 21 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ on: [push, pull_request]

jobs:
build:

strategy:
matrix:
os: [ubuntu-latest]
dotnet: [3.0.100]
runs-on: ${{ matrix.os }}

permissions:
id-token: write # Needed for GitHub Pages deployment
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Docker build
Expand All @@ -19,10 +16,20 @@ jobs:
docker create -ti --name dummy ancestors-map bash
docker cp dummy:/build/src/Client/deploy .
docker rm -f dummy
- name: Deploy
if: success()
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: deploy
# - name: Deploy
# if: success()
# uses: peaceiris/actions-gh-pages@v2.5.0
# env:
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# PUBLISH_BRANCH: gh-pages
# PUBLISH_DIR: deploy
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'deploy'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ deploy
.ionide/

.fake
.ionide
.ionide
.flox
.yarn
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM nojaf/fable
FROM docker.io/nojaf/fable:2.7
WORKDIR /build
COPY . ./
COPY .config .
RUN dotnet tool restore
RUN dotnet fake build -t Build
COPY paket.* .
RUN dotnet paket restore
COPY yarn.lock .
RUN yarn install --frozen-lockfile
COPY . .
RUN dotnet fake build -t Build
ENTRYPOINT dotnet fake build -t Run
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# AncestorsMap

[https://jindraivanek.github.io/AncestorsMap](https://jindraivanek.github.io/AncestorsMap)
:)


## Build
`podman build -t ancestors-map .`

## Run
`podman run -p 8080:8080 -it ancestors-map` and visit [http://localhost:8080](http://localhost:8080)
4 changes: 3 additions & 1 deletion src/Client/Client.fs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ let safeComponents =

p [ ]
[ strong [] [ str "AncestorsMap" ]
str " project by Jindřich Ivánek, GNU General Public License v3.0. "
str " project by "
a [ Href "https://jindraivanek.hashnode.dev" ] [ str "Jindřich Ivánek" ]
str ", GNU General Public License v3.0. "
components ]

let button txt onClick =
Expand Down