Skip to content

Commit

Permalink
feat: add ingredients
Browse files Browse the repository at this point in the history
  • Loading branch information
yesinkim committed Jan 20, 2024
1 parent 197de20 commit 3e051af
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 23 deletions.
53 changes: 31 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,42 @@ on:
tags:
- '*'

name: release
jobs:
deploy:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
# retrieve your distributions here
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/}

- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/}
- name: Update version in setup.py
run: |
VERSION=${{ steps.tag.outputs.TAG_NAME }}
VERSION=${VERSION#v}
sed -i "s/{{VERSION_PLACEHOLDER}}/$VERSION/g" setup.py
- name: Update version in setup.py
run: |
VERSION=${{ steps.tag.outputs.TAG_NAME }}
VERSION=${VERSION#v}
sed -i "s/{{VERSION_PLACEHOLDER}}/$VERSION/g" setup.py
- name: Build and publish
run: |
python setup.py sdist bdist_wheel
- name: Build and publish
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion ezpkl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from ezpkl.pickling import load_pkl, save_pkl

__version__ = "0.1.3"
__version__ = "0.1.4"
7 changes: 7 additions & 0 deletions ezpkl/refrigerator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ingredients = [
'apricot', 'broccoli', 'cherry', 'date', 'elderberry',
'fig', 'grape', 'honeydew', 'iceberg', 'jalapeno',
'kiwi', 'lime', 'mushroom', 'nectarine', 'olive',
'pumpkin', 'quince', 'raspberry', 'strawberry', 'tangerine',
'uglifruit', 'vanilla', 'watermelon', 'xigua', 'yam', 'zucchini'
]

0 comments on commit 3e051af

Please sign in to comment.