forked from redouane/django-fontawesome
-
Notifications
You must be signed in to change notification settings - Fork 20
64 lines (62 loc) · 1.75 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Release
on:
release:
types: [created]
jobs:
frontend:
name: Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Node Dependencies
run: |
npm install
npm install -g rollup
- name: Build
run: npm run build:production
- name: Upload js artifact
uses: actions/upload-artifact@v1
with:
name: js
path: fontawesome_5/static/fontawesome_5/js/django-fontawesome.js
- name: Upload css artifact
uses: actions/upload-artifact@v1
with:
name: css
path: fontawesome_5/static/fontawesome_5/css/django-fontawesome.css
backend:
name: Backend
needs: frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip pipenv
pipenv install --deploy --system
pip install setuptools wheel twine
- name: Download js artifact
uses: actions/download-artifact@v1
with:
name: js
path: fontawesome_5/static/fontawesome_5/js/
- name: Download css artifact
uses: actions/download-artifact@v1
with:
name: css
path: fontawesome_5/static/fontawesome_5/css/
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*