Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows: deploy to TestPyPI #3

Merged
merged 3 commits into from May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.