diff --git a/.gitea/workflows/website-ci.yml b/.gitea/workflows/website-ci.yml index cd4bab2..fface38 100644 --- a/.gitea/workflows/website-ci.yml +++ b/.gitea/workflows/website-ci.yml @@ -1,3 +1,4 @@ + name: Moorly Website CI on: @@ -32,3 +33,22 @@ jobs: - name: Security audit run: npm audit + - name: Deploy dev + if: github.event_name == 'push' && github.ref == 'refs/heads/dev' + env: + DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} + DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} + DEPLOY_USER: ${{ secrets.DEPLOY_USER }} + run: | + set -eu + + KEY_FILE="$(mktemp)" + trap 'rm -f "$KEY_FILE"' EXIT + + printf '%s\n' "$DEPLOY_SSH_KEY" > "$KEY_FILE" + chmod 600 "$KEY_FILE" + + rsync -az --delete \ + -e "ssh -i $KEY_FILE -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$HOME/.ssh/known_hosts" \ + dist/ "${DEPLOY_USER}@${DEPLOY_HOST}:/var/MoorlyWeb/dev/" + diff --git a/src/pages/.gitkeep b/src/pages/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..01f7d09 --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,276 @@ +--- +const arms = Array.from({ length: 8 }, (_, i) => i * 45); +const year = new Date().getFullYear(); +--- + + + + + + Moorly — Coming Soon + + + + + + + + + + + +
+ +

Moorly

+ + + +

The site is coming

+

+ Something is being forged in the north. The gates aren't open yet — but the fire is lit. +

+
+ + + +