Skip to content

Commit

Permalink
Merge pull request #2 from BeyondEvil/jim/publish
Browse files Browse the repository at this point in the history
add poetry publish
  • Loading branch information
BeyondEvil authored Dec 19, 2021
2 parents f245074 + 54a265b commit fff5868
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 3 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches:
- master
schedule:
- cron: '*/10 * * * *'
# schedule:
# - cron: '*/10 * * * *'

jobs:
default:
Expand All @@ -15,3 +15,23 @@ jobs:
- uses: actions/checkout@v2
- name: Hello World
run: echo "on pushes to master"

publish:
needs:
- default
name: Publish to Test PYPI
runs-on: ubuntu-latest
env:
POETRY_REPOSITORIES_TESTPYPI_URL: "https://test.pypi.org/legacy/"
POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.TEST_PYPI_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install poetry
run: |
pip install --upgrade pip
pip install poetry
- name: Build and publish to Test PYPI
run: poetry publish --build -r testpypi
15 changes: 15 additions & 0 deletions .github/workflows/parallel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Pull-requests to Parallel

on:
pull_request:
branches:
- parallel

jobs:
default:
name: Default job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Hello World
run: echo "on pull requests to parallel"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ A repo that I use to learn and explore everything related to software engineerin

May contain broken and/or malicious code, cloners beware.

```sh
poetry config repositories.testpypi https://test.pypi.org/legacy/
```

Empty file added jimbob_playground/__init__.py
Empty file.
4 changes: 4 additions & 0 deletions jimbob_playground/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


def main():
print("hello world")
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[tool.poetry]
name = "jimbob-playground"
name = "jimbob_playground"
version = "0.1.0"
description = "Jimbobs Python Playground"
authors = ["Jim Brännlund <[email protected]>"]

[tool.poetry.scripts]
useless = 'jimbob_playground.main:main'

[tool.poetry.dependencies]
python = "^3.9"

Expand Down

0 comments on commit fff5868

Please sign in to comment.