From c066bc4eee1e1f4039fbe3e531caa55c2634d9ad Mon Sep 17 00:00:00 2001 From: James Mills Date: Tue, 22 Aug 2023 14:19:47 +0000 Subject: [PATCH] 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 --- .gitea/workflows/build.yml | 19 +++++++++++++++++++ .gitea/workflows/deploy.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..d7e315b --- /dev/null +++ b/.gitea/workflows/build.yml @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..935df77 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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 }}"