Skip to content

CD 📦🚀

CD 📦🚀 #12

Workflow file for this run

name: CD Pipeline
run-name: CD 📦🚀
on:
workflow_run:
workflows: ["CI Pipeline"]
types: [completed]
branches:
- "main"
paths:
- "src/**"
- "requirements.txt"
- "LICENSE"
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
- name: 📦 Package
run: devbox run build
- name: 🚀 Publish to PyPI
run: devbox run publish
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
- run: echo "🍏 This job's status is ${{ job.status }}."