diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..7aa8ef7 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,11 @@ +changelog: + categories: + - title: 🏕 Features + labels: + - '*' + exclude: + labels: + - dependencies + - title: 👒 Dependencies + labels: + - dependencies diff --git a/.github/workflows/dispatch-release.yml b/.github/workflows/dispatch-release.yml new file mode 100644 index 0000000..7affe34 --- /dev/null +++ b/.github/workflows/dispatch-release.yml @@ -0,0 +1,26 @@ +name: Dispatch Release & Deploy to PROD +on: + repository_dispatch: + types: + - release-django-common-utils + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Client payload + run: | + cat <<'EOF' + ${{ toJson(github.event.client_payload) }} + EOF + + - name: Release + if: ${{ github.event.client_payload.release_target_commitish == 'main' }} + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.event.client_payload.release_tag }} + generate_release_notes: true + target_commitish: 'main' diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..e45dbae --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +recursive-include common/templates * +recursive-include common/static * diff --git a/setup.py b/setup.py index 7a6729c..399d41d 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,13 @@ -from distutils.core import setup - -from setuptools import find_packages +from setuptools import find_packages, setup setup( name="django-common-utils", packages=find_packages(), + include_package_data=True, + package_data={ + "common": [ + "templates/**/*", + "static/**/*", + ], + }, )