mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 21:06:03 +03:00
Update to use gitea-pages action
This commit is contained in:
parent
c066bc4eee
commit
7ae94f74bc
@ -5,7 +5,6 @@ name: Deploy
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -17,17 +16,7 @@ jobs:
|
|||||||
uses: actions/setup-zs@main
|
uses: actions/setup-zs@main
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: make build
|
run: make build
|
||||||
- name: Deploy site
|
- name: Publish site
|
||||||
id: deploy
|
uses: actions/gitea-pages@main
|
||||||
uses: actions/meli-deploy@main
|
|
||||||
with:
|
with:
|
||||||
action: release
|
path: .pub
|
||||||
meliUrl: https://meli.mills.io
|
|
||||||
meliSiteId: ${{ secrets.MELI_SITE_ID }}
|
|
||||||
meliSiteToken: ${{ secrets.MELI_SITE_TOKEN }}
|
|
||||||
buildFolder: .pub
|
|
||||||
- name: Notify PR
|
|
||||||
uses: actions/pr-comment@main
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.AUTOMATION_TOKEN }}
|
|
||||||
comment: "Site deployed to: ${{ steps.deploy.outputs.meliDeployUrl }}"
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
GITEA_BASE_URL="https://git.mills.io/prologic/zs-starter-template/_edit/main"
|
url="${ZS_FILE}?edit"
|
||||||
|
|
||||||
url="${GITEA_BASE_URL}/${ZS_FILE}"
|
printf "<a href=\"%s\" rel=\"nofollow\" target=\"_self\">✍️ Edit this page</a>" "$url"
|
||||||
|
|
||||||
printf "<a href=\"%s\" rel=\"nofollow\" target=\"_blank\">✍️ Edit this page on Gitea.</a>" "$url"
|
|
||||||
|
13
Dockerfile
13
Dockerfile
@ -1,17 +1,8 @@
|
|||||||
# Build
|
# Build
|
||||||
FROM prologic/zs AS build
|
FROM prologic/zs AS build
|
||||||
|
|
||||||
RUN mkdir -p /src
|
|
||||||
|
|
||||||
WORKDIR /src
|
|
||||||
|
|
||||||
# Copy content
|
# Copy content
|
||||||
COPY . .
|
COPY --chown=zs . .
|
||||||
|
|
||||||
# Build the site (in production mode)
|
# Build the site (in production mode)
|
||||||
RUN zs -p build
|
#RUN zs -P build
|
||||||
|
|
||||||
# Runtime
|
|
||||||
FROM prologic/zs AS runtime
|
|
||||||
|
|
||||||
COPY --from=build /src/.pub /data
|
|
||||||
|
1
index.md
1
index.md
@ -8,6 +8,7 @@ This is a [zs](https://git.mills.io/prologic/zs) starter template. A live versio
|
|||||||
- A basic layout using a modified version of [bahunya][bahunya] for style
|
- A basic layout using a modified version of [bahunya][bahunya] for style
|
||||||
- [live.js](live.js) for faster development
|
- [live.js](live.js) for faster development
|
||||||
- Examples of several built-in extensions
|
- Examples of several built-in extensions
|
||||||
|
- Editable from within the browser!
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user