Skip to content

Commit

Permalink
push on release only (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJoz authored Jan 31, 2021
1 parent d3bdf99 commit 2504f1c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 31 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/release.yaml

This file was deleted.

24 changes: 23 additions & 1 deletion .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: WHL

on:
push:
release:
types: [published]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -79,4 +81,24 @@ jobs:
with:
name: dist
path: ./dist/*.whl


upload_ofcl_pypi:
needs: build_wheels
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v2

- name: Display structure of downloaded files
run: ls -R
working-directory: ./dist/

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.POETRY_HTTP_BASIC_PYPI_FASTFM2_TOKEN }}
repository_url: https://upload.pypi.org/legacy/
# verbose: true
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fastfm2"
version = "0.4.2"
version = "0.4.3"
description = "A Library for Factorization Machines"
authors = ["palaimon.io <oss@mail.palaimon.io>"]
license = "GNU AGPLv3"
Expand Down

0 comments on commit 2504f1c

Please sign in to comment.