-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (33 loc) · 1.2 KB
/
deploy.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:
# Trigger the workflow every time you push to the branches you defined.
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
env:
APP_MAIN_STATE: ${{ vars.APP_MAIN_STATE }}
APP_GITHUB_URL: ${{ vars.APP_GITHUB_URL }}
APP_POSTER_MAIL: ${{ vars.APP_POSTER_MAIL }}
APP_OLD_SITE_URL: ${{ vars.APP_OLD_SITE_URL }}
APP_OLD_SITE_TITLE: ${{ vars.APP_OLD_SITE_TITLE }}
APP_OLD_SITE_DESCRIPTION: ${{ vars.APP_OLD_SITE_DESCRIPTION }}
APP_GA_MEASUREMENT_ID: ${{ vars.APP_GA_MEASUREMENT_ID }}
APP_UNDERSHOWS_IG: ${{ vars.APP_UNDERSHOWS_IG }}
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.