forked from GourmandRecipeManager/gourmand
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 1002 Bytes
/
build.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
# This workflow will install Python dependencies, and build the app
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup build environment
run: |
sudo apt-get update -q
sudo apt-get install python3-testresources intltool
sudo pip3 install --upgrade pip setuptools wheel
- name: Create wheel and source distributions
run: |
python3 setup.py sdist bdist_wheel
mv dist/gourmand-*.tar.gz dist/gourmand-${GITHUB_SHA::8}.tar.gz
mv dist/gourmand-*-py3-none-any.whl dist/gourmand-${GITHUB_SHA::8}-py3-none-any.whl
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: gourmand
path: ./dist/gourmand-*