20240208_045428 #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: [ master ] | |
pull_request: | |
branches: [ master ] | |
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/gourmet-*.tar.gz dist/gourmet-${GITHUB_SHA::8}.tar.gz | |
mv dist/gourmet-*-py3-none-any.whl dist/gourmet-${GITHUB_SHA::8}-py3-none-any.whl | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: gourmet | |
path: ./dist/gourmet-* |