update bib #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
check-version: | |
name: Check Version | |
runs-on: ubuntu-20.04 | |
outputs: | |
local-version: ${{ steps.get-local-version.outputs.version }} | |
remote-version: ${{ steps.get-remote-version.outputs.version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get Local Version | |
id: get-local-version | |
run: echo "version=$(cat version.txt)" >> $GITHUB_OUTPUT | |
- name: Get Remote Version | |
id: get-remote-version | |
run: echo "version=$(curl -s https://pypi.org/pypi/marlin_pytorch/json | jq -r '.info.version')" >> $GITHUB_OUTPUT | |
release: | |
runs-on: ubuntu-20.04 | |
needs: check-version | |
if: needs.check-version.outputs.local-version != needs.check-version.outputs.remote-version | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.lib.txt | |
python init.py | |
- name: Build package for marlin_pytorch | |
run: python setup.py sdist bdist_wheel | |
- name: Release marlin_pytorch to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
- name: Get the version | |
run: | | |
VER=$(cat version.txt) | |
echo "VERSION=$VER" >> $GITHUB_ENV | |
- name: Release to GitHub Release | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "${{ env.VERSION }}" | |
title: "[${{ env.VERSION }}] Marlin-PyTorch Release" | |
prerelease: false | |
files: "dist/*" | |
draft: true |