mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 12:56:04 +03:00
Test meli (#1)
Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com> Reviewed-on: https://git.mills.io/prologic/zs-starter-template/pulls/1
This commit is contained in:
parent
ca87b12fbc
commit
c066bc4eee
19
.gitea/workflows/build.yml
Normal file
19
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup zs
|
||||
uses: actions/setup-zs@main
|
||||
- name: Build Site
|
||||
run: make build
|
33
.gitea/workflows/deploy.yml
Normal file
33
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup zs
|
||||
uses: actions/setup-zs@main
|
||||
- name: Build site
|
||||
run: make build
|
||||
- name: Deploy site
|
||||
id: deploy
|
||||
uses: actions/meli-deploy@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 }}"
|
Loading…
Reference in New Issue
Block a user