-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (37 loc) · 1.01 KB
/
main.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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build and Deploy
on:
push:
branches: source
workflow_dispatch:
repository_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/setup-node@v1
with:
node-version: '18'
- name: Install Pipenv
run: pip install pipenv
- name: Install Dependencies
env:
PIPENV_IGNORE_VIRTUALENVS: 1
PIPENV_VENV_IN_PROJECT: 1
run: |
pipenv install --ignore-pipfile --deploy
npm install -g sass
- name: Build
env:
ENVIRONMENT: PRODUCTION
run: pipenv run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: master
publish_dir: output
full_commit_message: ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}