Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrieser authored Apr 26, 2024
1 parent 266f528 commit 1bb290f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI Pipeline

on:
push:
tags:
- '*'

env:
LINUX_AMD64_BINARY: ${{ github.event.repository.name }}-linux-amd64-${{ github.ref_name }}.tar.gz
PACKAGE_REGISTRY_URL: ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.ref_name }}

jobs:
build:
runs-on: ubuntu-latest
container:
image: python:3.8

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
python -V
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
sed -i "s/^version=.*/version='${{ env.VERSION }}'/" version.py
pip install -U pip
pip install -r requirements.txt
pyinstaller ${{ github.event.repository.name }} --onefile
- name: Test application
run: |
./dist/${{ github.event.repository.name }} --version

0 comments on commit 1bb290f

Please sign in to comment.