Skip to content

Commit

Permalink
docs: ✏️ Start creating the website (#299)
Browse files Browse the repository at this point in the history
Create the website for UnisonUI

refs: #228
  • Loading branch information
MaethorNaur committed Mar 12, 2021
1 parent 841c22f commit 991273a
Show file tree
Hide file tree
Showing 261 changed files with 33,878 additions and 17,116 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Expand Up @@ -6,6 +6,6 @@
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/web" # Location of package manifests
directory: "/modules/web" # Location of package manifests
schedule:
interval: "daily"
interval: "monthly"
22 changes: 22 additions & 0 deletions .github/workflows/hugo.yml
@@ -0,0 +1,22 @@
name: Hugo
on:
push:
branches:
- "master"
paths:
- 'site/**'
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1
- name: Deploy the site
uses: MaethorNaur/hugo-deploy-gh-pages@master
env:
HUGO_VERSION: 0.79.1
TARGET_REPO: UnisonUI/unisonui.github.io
TARGET_BRANCH: master
TOKEN: ${{ secrets.TOKEN }}
CNAME: unisonui.tech
26 changes: 17 additions & 9 deletions .github/workflows/release.yml
Expand Up @@ -21,6 +21,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Login to GitHub Packages Docker Registry
uses: docker/login-action@v1
with:
Expand All @@ -44,18 +47,12 @@ jobs:
path: rest-ui/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('rest-ui/package.*') }}
restore-keys: ${{ runner.os }}-node-
- name: Restore conventional changelog cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-conventional-changelog
restore-keys: ${{ runner.os }}-conventional-changelog
- name: install conventional changelog
- name: Install and run Kokai
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
npm install conventional-changelog-cli
node_modules/.bin/conventional-changelog -r 2 -p angular | tail -n +5 > release.md
cargo install kokai --git https://github.com/MaethorNaur/kokai
kokai release -ref $RELEASE_VERSION --url https://github.com/UnisonUI/UnisonUI > release.md
echo "\`docker pull unisonui/unisonui:${RELEASE_VERSION}\`" >> release.md
- name: build
run: sbt "project unison-ui; npmInstall; webpackProdTask; dockerBuildAndPush"
Expand All @@ -70,3 +67,14 @@ jobs:
body_path: release.md
draft: false
prerelease: false
- name: Upload Release
id: upload_release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: modules/unison-ui/target/universal/unisonui.zip
asset_name: unisonui.zip
asset_content_type: application/zip

1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -62,4 +62,5 @@ project/project/project/metals.sbt
.metals/
node_modules/
/docker/statics/
/site/resources/
# End of https://www.gitignore.io/api/sbt,scala,intellij
219 changes: 0 additions & 219 deletions CHANGELOG.md

This file was deleted.

4 changes: 2 additions & 2 deletions build.sbt
Expand Up @@ -19,12 +19,12 @@ lazy val unisonUi = Projects.unisonUi
.settings(DockerSettings.settings)
.settings(mainClass in Compile := Some("tech.unisonui.server.Main"))
.settings(Tasks.tasks)
.enablePlugins(JavaAppPackaging, sbtdocker.DockerPlugin)
.enablePlugins(JavaAppPackaging, UniversalPlugin, sbtdocker.DockerPlugin)

lazy val unisonUiCore = Projects.unisonUiCore
.settings(Dependencies.unisonUiCore)

lazy val providers = (project in file("providers"))
lazy val providers = (project in file("modules/providers"))
.aggregate(providerContainer, providerGit, providerWebhook)

lazy val providerWebhook = Projects.providerWebhook
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Expand Up @@ -2,7 +2,7 @@
opts="-Dunisonui.http.statics-path=/app/statics/"

while IFS='=' read -r name value; do
if [[ $name == 'UNISIOMUI_'* ]]; then
if [[ $name == 'UNISIONUI_'* ]]; then
value=${!name}
name=${name//__/-}
name=${name//_/.}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
unisonui {
providers += "tech.unisonui.providers.container.ContainerProvider"
providers += "tech.unisonui.providers.ContainerProvider"
provider.container {
kubernetes {
enabled = yes
Expand All @@ -15,10 +15,10 @@ unisonui {
service-name = "unisonui.service-name"

openapi {
port = "unisonui.specification.port"
protocol = "unisonui.specification.protocol"
specification-path = "unisonui.specification.path"
use-proxy = "unisonui.specification.use-proxy"
port = "unisonui.openapi.port"
protocol = "unisonui.openapi.protocol"
specification-path = "unisonui.openapi.path"
use-proxy = "unisonui.openapi.use-proxy"
}

grpc {
Expand Down
@@ -1,4 +1,4 @@
package tech.unisonui.providers.container
package tech.unisonui.providers

import akka.NotUsed
import akka.actor.typed.ActorSystem
Expand Down
Expand Up @@ -47,8 +47,8 @@ object Settings {
val openApiLabels =
OpenApiLabels(port, protocol, specificationPath, useProxy).some

val grpcPort = config.getString(s"$GrpcLabelsPath.grpc-port")
val grpcTls = config.getString(s"$GrpcLabelsPath.grpc-tls")
val grpcPort = config.getString(s"$GrpcLabelsPath.port")
val grpcTls = config.getString(s"$GrpcLabelsPath.tls")
val grpcLabels = GrpcLabels(grpcPort, grpcTls).some

Settings(dockerSettings,
Expand Down
@@ -1,5 +1,5 @@
unisonui {
providers += "tech.unisonui.providers.git.GitProvider"
providers += "tech.unisonui.providers.GitProvider"

provider.git {
cache-duration = "2 hours"
Expand Down
@@ -1,4 +1,4 @@
package tech.unisonui.providers.git
package tech.unisonui.providers

import akka.NotUsed
import akka.actor.typed.ActorSystem
Expand Down

0 comments on commit 991273a

Please sign in to comment.