Update to use gitea-pages action

This commit is contained in:
Gitea Automation Bot 2024-03-03 15:16:15 +10:00
parent c066bc4eee
commit 7ae94f74bc
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
4 changed files with 8 additions and 29 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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