update readme #3
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: build learntools package workflow | |
on: push | |
jobs: | |
build-learntools-package: | |
if: "contains(github.event.head_commit.message, '-build')" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: check out code from repo | |
uses: actions/checkout@v3 | |
- name: setup python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: install package dependencies | |
run: | | |
sudo add-apt-repository ppa:deadsnakes/ppa -y | |
sudo apt-get install python3.10-venv -y | |
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 | |
- name: run python code | |
run: | | |
python3.10 -m pip install --upgrade build | |
python3.10 -m build | |
- name: create release | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
files: "dist/learntools-0.0.1.tar.gz" | |
automatic_release_tag: "latest" | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false |