Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): add workflow to build egg for PRs and pushes (#4190)
Browse files Browse the repository at this point in the history
Add a simple GitHub workflow to build the egg for new PRs and pushes to
the maintained branches. The resulting egg is kept as artifact, so it
can be downloaded and used later on.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
ptoscano authored Aug 20, 2024
1 parent e07c125 commit e1034c5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build_egg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Egg

on:
push:
branches: [ master, '3.0']
pull_request:
branches: [ master ]

jobs:
build-egg:

runs-on: ubuntu-latest

steps:
- name: Install dependencies
run: |
sudo apt-get install -y --no-install-recommends python3 git zip
- uses: actions/checkout@v4
- name: Build egg
run: |
./build_client_egg.sh python3
- name: Upload egg
uses: actions/upload-artifact@v4
with:
name: egg
path: insights.zip
retention-days: 7

0 comments on commit e1034c5

Please sign in to comment.