mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 12:56:04 +03:00
Update to use gitea-pages action
This commit is contained in:
parent
c066bc4eee
commit
7ae94f74bc
@ -5,7 +5,6 @@ name: Deploy
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@ -17,17 +16,7 @@ jobs:
|
||||
uses: actions/setup-zs@main
|
||||
- name: Build site
|
||||
run: make build
|
||||
- name: Deploy site
|
||||
id: deploy
|
||||
uses: actions/meli-deploy@main
|
||||
- name: Publish site
|
||||
uses: actions/gitea-pages@main
|
||||
with:
|
||||
action: release
|
||||
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 }}"
|
||||
path: .pub
|
||||
|
@ -1,7 +1,5 @@
|
||||
#!/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=\"_blank\">✍️ Edit this page on Gitea.</a>" "$url"
|
||||
printf "<a href=\"%s\" rel=\"nofollow\" target=\"_self\">✍️ Edit this page</a>" "$url"
|
||||
|
13
Dockerfile
13
Dockerfile
@ -1,17 +1,8 @@
|
||||
# Build
|
||||
FROM prologic/zs AS build
|
||||
|
||||
RUN mkdir -p /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
# Copy content
|
||||
COPY . .
|
||||
COPY --chown=zs . .
|
||||
|
||||
# Build the site (in production mode)
|
||||
RUN zs -p build
|
||||
|
||||
# Runtime
|
||||
FROM prologic/zs AS runtime
|
||||
|
||||
COPY --from=build /src/.pub /data
|
||||
#RUN zs -P build
|
||||
|
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
|
||||
- [live.js](live.js) for faster development
|
||||
- Examples of several built-in extensions
|
||||
- Editable from within the browser!
|
||||
|
||||
## Quick Start
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user