Skip to content

Commit

Permalink
Update waypanel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
killown authored Aug 5, 2024
1 parent 8174752 commit 24df0f5
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/waypanel.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This workflow will install Python dependencies and lint
name: Python package

on:
Expand All @@ -15,16 +16,12 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgirepository1.0-dev \
pkg-config \
python3-dev \
build-essential
- name: Install pypa/build
run: python3 -m pip install build --user
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
Expand All @@ -34,7 +31,9 @@ jobs:
path: dist/

publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
name: >-
Publish Python 🐍 distribution 📦 to PyPI
# comment this line to publish every git push
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
environment:
name: release
Expand All @@ -44,24 +43,19 @@ jobs:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Set up Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgirepository1.0-dev \
pkg-config \
python3-dev \
build-essential
python-version: ${{ matrix.python-version }}
- name: Install
if: github.event_name == 'release'
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install setuptools wheel
python3 setup.py install
python3 -m pip install .
python -m pip install -U build
python3 -m build
- name: Download all the dists
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 24df0f5

Please sign in to comment.