Skip to content

Commit

Permalink
Unifying the github release actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
haz committed Sep 27, 2023
1 parent 51c383d commit d310544
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 33 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/docker-image.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package
name: Release

on:
release:
types: [published]

jobs:

deploy:

runs-on: ubuntu-latest
Expand All @@ -34,3 +27,22 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

build:

runs-on: ubuntu-latest

needs: deploy

steps:
- uses: actions/checkout@v2
- name: Docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file releng/Dockerfile --tag aiplanning/planutils:latest
- name: Docker Push
run: docker push aiplanning/planutils:latest

0 comments on commit d310544

Please sign in to comment.