From a15ef8a3086c33cfd71a18c64876ffc4982abb47 Mon Sep 17 00:00:00 2001 From: pyrco <105293448+pyrco@users.noreply.github.com> Date: Fri, 16 Jun 2023 14:48:57 +0200 Subject: [PATCH 1/2] Add useful trove classifiers to pyproject.toml (#16) (DIS-1502) --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 197bcab..12bb601 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,17 @@ authors = [ {name = "Dissect Team", email = "dissect@fox-it.com"} ] classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "Intended Audience :: Information Technology", + "License :: OSI Approved", + "Operating System :: OS Independent", "Programming Language :: Python :: 3", + "Topic :: Internet :: Log Analysis", + "Topic :: Scientific/Engineering :: Information Analysis", + "Topic :: Security", + "Topic :: Utilities", ] dependencies = [ "dissect.cstruct>=3.0.dev,<4.0.dev", From fe6900e4b949c16f6d48cb3c12861ea41a6f022b Mon Sep 17 00:00:00 2001 From: Miauwkeru Date: Tue, 27 Jun 2023 09:48:22 +0200 Subject: [PATCH 2/2] Add publishing step (#17) --- .github/workflows/dissect-ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dissect-ci.yml b/.github/workflows/dissect-ci.yml index 2926533..e742f8f 100644 --- a/.github/workflows/dissect-ci.yml +++ b/.github/workflows/dissect-ci.yml @@ -4,6 +4,26 @@ on: [push, pull_request, workflow_dispatch] jobs: ci: uses: fox-it/dissect-workflow-templates/.github/workflows/dissect-ci-template.yml@main + secrets: inherit + + publish: + if: ${{ github.ref_name == 'main' || github.ref_type == 'tag' }} + needs: [ci] + runs-on: ubuntu-latest + environment: dissect_publish + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v3 + with: + name: packages + path: dist/ + # According to the documentation, it automatically looks inside the `dist/` folder for packages. + - name: Publish package distributions to Pypi + uses: pypa/gh-action-pypi-publish@release/v1 + + trigger-tests: + needs: [publish] + uses: fox-it/dissect-workflow-templates/.github/workflows/dissect-ci-demand-test-template.yml@main with: on-demand-test: 'dissect.target' - secrets: inherit