Skip to content

Commit

Permalink
test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kornpow committed Mar 10, 2023
1 parent 0a28487 commit 8d87782
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: build

on:
workflow_dispatch:
workflow_call:
# push:

jobs:
multi:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -15,16 +16,15 @@ jobs:
with:
python-version: "3.10"

- name: Run image
uses: abatilo/actions-poetry@v2
- name: Install Poetry
uses: snok/install-poetry@v1
with:
poetry-version: "1.3.1"

- name: View poetry --help
run: poetry --help
version: 1.3.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Build
run: |
poetry install
poetry build
ls dist/*
14 changes: 12 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ on:


jobs:
multi:
build:
uses: kornpow/lnd-grpc-client/.github/workflows/build.yml@github_actions

deploy:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit 8d87782

Please sign in to comment.