Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonCatalyst authored Aug 14, 2024
1 parent 03c3b52 commit cea678e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish Package
name: Build and Publish

on:
push:
Expand All @@ -10,7 +10,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -24,9 +23,16 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push multi-platform Docker image
- name: Build and push Docker image
run: |
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t your-image-name --push .
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t your-dockerhub-username/your-image-name:latest --push .
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -39,7 +45,7 @@ jobs:
pip install -r requirements.txt
pip install build twine
- name: Build and publish package
- name: Build and publish Python package
run: |
python -m build
python -m twine upload dist/*
Expand Down

0 comments on commit cea678e

Please sign in to comment.