zs-starter-template/.gitea/workflows/deploy.yml

34 lines
758 B
YAML
Raw Normal View History

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