Skip to content

Commit

Permalink
.github/workflows: deploy to TestPyPI (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
yonidavidson committed May 10, 2023
1 parent 9546d53 commit 2c8a89e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/cd-pypi.yaml
@@ -0,0 +1,33 @@
name: cd-pypi

on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pipenv'
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install dependencies
run: pipenv sync --dev
- name: Build package
run: pipenv run python -m build
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
if: startsWith(github.ref, 'refs/tags/')
@@ -1,4 +1,4 @@
name: Test Djangoviz
name: ci

on:
workflow_dispatch:
Expand All @@ -13,7 +13,6 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
8 changes: 0 additions & 8 deletions djangoviz/.gitignore

This file was deleted.

0 comments on commit 2c8a89e

Please sign in to comment.