mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2025-04-11 04:50:56 +00:00
Test meli
This commit is contained in:
parent
ca87b12fbc
commit
37f972ac35
2 changed files with 50 additions and 0 deletions
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
|
31
.gitea/workflows/deploy.yml
Normal file
31
.gitea/workflows/deploy.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
MELI_SITE: "c27f3ac5-d329-4ca2-ab82-d3eaa79ee95f"
|
||||
|
||||
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: Publish Site
|
||||
run: |
|
||||
npx -p "@getmeli/cli" meli upload .pub \
|
||||
--url "https://meli.mills.io" \
|
||||
--site "$MELI_SITE" \
|
||||
--token "$MELI_TOKEN" \
|
||||
--release "$GITHUB_SHA"
|
||||
env:
|
||||
MELI_TOKEN: ${{ secrets.MELI_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Add table
Reference in a new issue