Skip to content

Commit c3388dc

Browse files
committed
Adding website deploy
Signed-off-by: Gabriel Santamaria <gaby.santamaria@outlook.fr>
1 parent 8aba5e2 commit c3388dc

File tree

2 files changed

+38
-8
lines changed

2 files changed

+38
-8
lines changed

.github/workflows/workflow.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: CI
22

33
on:
4-
- pull_request
5-
- push
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
types: [opened, synchronize, reopened, labeled, unlabeled]
69

710
jobs:
811
build:
@@ -48,4 +51,34 @@ jobs:
4851
with:
4952
ocaml-compiler: "4.14"
5053

51-
- uses: ocaml/setup-ocaml/lint-fmt@v2
54+
- uses: ocaml/setup-ocaml/lint-fmt@v2
55+
56+
- name: Upload playground.bc.js
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: playground
60+
path: _build/default/doc/ocaml/playground.bc.js
61+
62+
deploy-site:
63+
needs: build
64+
runs-on: ubuntu-latest
65+
if: github.ref == 'refs/heads/main'
66+
steps:
67+
- uses: actions/checkout@v4
68+
69+
- name: Download playground.bc.js
70+
uses: actions/download-artifact@v2
71+
with:
72+
name: playground
73+
path: doc/assets/playground.bc.js
74+
75+
- name: Deploy to VPS Server
76+
uses: easingthemes/ssh-deploy@main
77+
with:
78+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
79+
ARGS: "-rlgoDzvc -i"
80+
SOURCE: "/doc/"
81+
REMOTE_HOST: ${{ secrets.HOST }}
82+
REMOTE_USER: ${{ secrets.USERNAME }}
83+
TARGET: ${{ secrets.PATH }}
84+
EXCLUDE: "/ocaml/, *.md"

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<p align="center"><img src="https://raw.githubusercontent.com/gabyfle/Lice/main/lice.svg" width="200px" style="margin: auto; border-radius: 200px;"></p>
22

3-
<center>
3+
<h2 align="center">The Lice Programming Language</h2>
44

5-
[![CI](https://github.com/gabyfle/Lice/actions/workflows/workflow.yml/badge.svg?branch=main)](https://github.com/gabyfle/Lice/actions/workflows/workflow.yml)
5+
<p align="center"><img src="https://github.com/gabyfle/Lice/actions/workflows/workflow.yml/badge.svg?branch=main"> <img src="https://img.shields.io/github/v/release/gabyfle/Lice"> <img src="https://badgen.net/github/stars/gabyfle/Lice"></p>
66

7-
</center>
87

9-
# Lice
10-
Lice language main repository. Contains all the library code of the Lice language and everything you need to add Lice to your OCaml application.
118

129
## What is Lice ?
1310

0 commit comments

Comments
 (0)