feat(taxon): Adiciona mapa de ocorrências #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deno Deploy | |
on: | |
push: | |
branches: | |
- main | |
paths: ['web/**', '.github/workflows/deno-deploy.yml'] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Needed for auth with Deno Deploy | |
contents: read # Needed to clone the repository | |
pull-requests: write | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Setup node and cache | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
cache-dependency-path: web/yarn.lock | |
- name: Install dependencies | |
working-directory: ./web | |
run: yarn | |
- name: Setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Hackfix to build astro | |
working-directory: ./web | |
run: deno run -A ./hackfix_astrobuild.ts build | |
- name: Build Astro | |
working-directory: ./web | |
env: | |
MONGO_URI: ${{secrets.MONGO_URI}} | |
run: yarn run build | |
- name: Upload to Deno Deploy | |
working-directory: ./web | |
run: | | |
deno install --allow-all --no-check -r -f https://deno.land/x/deploy/deployctl.ts | |
cd dist | |
deployctl deploy --project=${{secrets.DENO_DEPLOY_PROJECT}} --token=${{secrets.DENO_DEPLOY_TOKEN}} --prod ./server/entry.mjs |