Test actions/meli-deploy action

This commit is contained in:
James Mills 2023-08-22 23:20:04 +10:00
parent 73533604d2
commit c986f650a1
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6

View file

@ -7,9 +7,6 @@ on:
branches: [main]
pull_request:
env:
MELI_SITE: "c27f3ac5-d329-4ca2-ab82-d3eaa79ee95f"
jobs:
deploy:
runs-on: ubuntu-latest
@ -20,13 +17,11 @@ jobs:
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 }}
- name: Deploy site
uses: actions/meli-deploy@mail
with:
action: release
meliUrl: https://meli.mills.io
meliSiteId: ${{ secrets.MELI_SITE_ID }}
meliSiteToken: ${{ secrets.MELI_SITE_TOKEN }}
buildFolder: .pub