Skip to content

feat: show previous closing prices in portfolio #13

feat: show previous closing prices in portfolio

feat: show previous closing prices in portfolio #13

Workflow file for this run

name: "Release and Publish"
on:
push:
tags:
- "v*.*.*"
jobs:
Build:
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
- name: Set ENV
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install Poetry
run: |
pipx install poetry
poetry self add poetry-bumpversion
- name: Setup Python
uses: actions/setup-python@v4.5.0
with:
python-version: "3.11"
cache: 'poetry'
- name: Bump package version
run: poetry version $(echo "${{ env.RELEASE_VERSION }}" | sed 's/v//')
- name: Commit and push version bump
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add -u
git commit -m "chore(release): ${{ env.RELEASE_VERSION }} release"
git push
- name: Install Dependencies
run: poetry install
- name: Build
run: poetry build
- name: Release
shell: bash
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_API_TOKEN
poetry publish
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
files: |
dist/*.whl