Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 committed Aug 10, 2023
1 parent 600f877 commit 6fc3a08
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Release Python Wheel

on:
push:
tags:
- 'v*' # Trigger on tags that start with 'v'

jobs:
build_and_release:
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install Dependencies
run: |
pip install poetry
- name: Build Wheel
run: |
poetry build
- name: Create Release and Upload Wheel
id: create_release
uses: softprops/action-gh-release@v1
with:
files: dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pyc
dist/
Binary file modified dist/sophosfirewall_python-0.1.4-py3-none-any.whl
Binary file not shown.
Binary file modified dist/sophosfirewall_python-0.1.4.tar.gz
Binary file not shown.

0 comments on commit 6fc3a08

Please sign in to comment.