Skip to content

Commit

Permalink
Uncomment steps that were disabled for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Apr 12, 2024
1 parent c766edb commit c717e61
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Publish to PyPI and GitHub release

on:
push:
# tags:
# - 'v*'
tags:
- 'v*'

jobs:
python-package:
Expand All @@ -26,8 +26,8 @@ jobs:
- name: Build package
run: |
python -m build . --sdist --wheel
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Upload compiled wheels
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -62,46 +62,46 @@ jobs:
name: windows-installer
path: dist/*.exe

# git-release:
# runs-on: ubuntu-latest
# needs: [python-package, windows-installer]
# steps:
# - name: Download installer
# uses: actions/download-artifact@v4
# with:
# path: dist
# - name: Create GitHub Release
# uses: docker://antonyurchenko/git-release:v4
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DRAFT_RELEASE: "false"
# PRE_RELEASE: "false"
# CHANGELOG_FILE: "CHANGELOG.md"
# with:
# args: |
# dist/*
git-release:
runs-on: ubuntu-latest
needs: [python-package, windows-installer]
steps:
- name: Download installer
uses: actions/download-artifact@v4
with:
path: dist
- name: Create GitHub Release
uses: docker://antonyurchenko/git-release:v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRAFT_RELEASE: "false"
PRE_RELEASE: "false"
CHANGELOG_FILE: "CHANGELOG.md"
with:
args: |
dist/*
# build-streamlit-image:
# runs-on: ubuntu-latest
# needs: python-package
# steps:
# - uses: actions/checkout@v4
# - id: latest_release
# uses: pozetroninc/github-action-get-latest-release@master
# with:
# owner: compomics
# repo: DeepLC
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push to ghcr.io
# uses: docker/build-push-action@v5
# with:
# context: streamlit
# push: true
# tags: |
# ghcr.io/compomics/deeplc-streamlit:${{ steps.latest_release.outputs.release }}
# ghcr.io/compomics/deeplc-streamlit:latest
build-streamlit-image:
runs-on: ubuntu-latest
needs: python-package
steps:
- uses: actions/checkout@v4
- id: latest_release
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: compomics
repo: DeepLC
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push to ghcr.io
uses: docker/build-push-action@v5
with:
context: streamlit
push: true
tags: |
ghcr.io/compomics/deeplc-streamlit:${{ steps.latest_release.outputs.release }}
ghcr.io/compomics/deeplc-streamlit:latest

0 comments on commit c717e61

Please sign in to comment.