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: 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 }}"

View File

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

View File

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

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