-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 861 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build and Deploy
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
environment:
name: production
url: https://mini.sampa.br
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build 🔧
shell: bash
env:
VITE_KEY: ${{ secrets.MAPBOX_KEY }}
run: |
npm ci
npm run gen
npm run build-loader
npm run load
npm run build
- name: Deploy 🚀
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages publish ./dist --project-name=${{ github.event.repository.name }}