Skip to content

Commit

Permalink
Create one actions for deploying to PyPI and Docker Hub.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Dec 11, 2023
1 parent acea230 commit fc1a297
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 72 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/build_docker.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to PyPI, Anaconda, and Docker Hub
name: Build and Deploy to PyPI and Docker Hub

on:
push:
Expand Down Expand Up @@ -33,37 +33,9 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

- name: Install Conda and Conda-Build
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
echo "source $HOME/miniconda/etc/profile.d/conda.sh" >> $GITHUB_ENV
source $HOME/miniconda/etc/profile.d/conda.sh
conda init bash
conda update --yes conda
conda install --yes conda-build
conda install -c conda-forge grayskull
shell: bash -l {0}

- name: Generate Conda recipe
run: |
grayskull pypi readmeai
conda build readmeai
shell: bash -l {0}

- name: Convert Conda package for other platforms
run: |
conda convert --platform all $HOME/miniconda/conda-bld/linux-64/readmeai-*.tar.bz2 --output-dir dist_conda/
- name: Publish package to Anaconda
run: |
anaconda upload dist_conda/*/*.tar.bz2
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}

- name: Docker Hub build and push image.
run: |
echo "Waiting 30 seconds for Docker Hub to process the release..."
echo "Waiting 30 seconds for Docker Hub to process the PyPI package..."
sleep 30
- name: Set up QEMU
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "readmeai"
version = "0.4.073"
version = "0.4.074"
description = "🚀 Generate beautiful README files from the terminal, powered by OpenAI's GPT language models 💫"
authors = ["Eli <0x.eli.64s@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit fc1a297

Please sign in to comment.