-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1002 Bytes
/
mike-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
36
37
38
39
40
41
42
name: Mike build and deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: mike deploy main on gh-pages
steps:
- name: git-checkout
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 0
token: ${{ secrets.MIKE_PAT }}
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: '3.x'
architecture: 'x64'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE
pip install -r requirements.txt
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Build and deploy
run: |
cd $GITHUB_WORKSPACE
mike deploy --push git-main