-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
114 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CD Pipeline | ||
run-name: CD 📦🚀 | ||
|
||
on: | ||
workflow_run: | ||
workflows: ['CI'] | ||
types: [completed] | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
CD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
- run: echo "🖥️ The workflow is now ready to test your code on the runner." | ||
- name: Installing Devbox ⚙️ | ||
uses: jetpack-io/[email protected] | ||
- name: Install all dependencies 📦 | ||
run: devbox run install-dev | ||
- name: 📦 Package | ||
run: devbox run build | ||
- name: 🚀 Publish to PyPI | ||
run: devbox run publish | ||
- run: echo "🍏 This job's status is ${{ job.status }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from setuptools import setup, find_packages | ||
import calendar | ||
import time | ||
|
||
gmt = time.gmtime() | ||
ts = calendar.timegm(gmt) | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name="json-to-markdown", | ||
version=f"0.1.{ts}", | ||
packages=find_packages(where="src"), | ||
package_dir={"": "src"}, | ||
url="https://anevis.github.io/json-to-markdown/", | ||
license="MIT", | ||
author="anevis", | ||
install_requires=[ | ||
"click==8.1.7", | ||
"jsonschema[format]==4.21.1", | ||
"pyyaml==6.0.1", | ||
], | ||
entry_points={ | ||
"console_scripts": [ | ||
"json-to-markdown=json_to_markdown.convert:main", | ||
], | ||
}, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters