Skip to content

Commit 5fba03c

Browse files
committed
misc: remove test-pypi cicd
1 parent a7f2f4f commit 5fba03c

2 files changed

Lines changed: 8 additions & 51 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -115,29 +115,6 @@ jobs:
115115
name: dist
116116
path: dist/
117117

118-
publish-test:
119-
name: Publish to Test PyPI
120-
runs-on: ubuntu-latest
121-
needs: build
122-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
123-
environment:
124-
name: test-pypi
125-
url: https://test.pypi.org/p/IsraeliQueue
126-
127-
steps:
128-
- name: Download build artifacts
129-
uses: actions/download-artifact@v4
130-
with:
131-
name: dist
132-
path: dist/
133-
134-
- name: Publish to Test PyPI
135-
uses: pypa/gh-action-pypi-publish@release/v1
136-
with:
137-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
138-
repository-url: https://test.pypi.org/legacy/
139-
skip-existing: true
140-
141118
publish-prod:
142119
name: Publish to PyPI
143120
runs-on: ubuntu-latest

DEPLOYMENT.md

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,40 @@ This guide will help you set up automated publishing to PyPI using GitHub Action
44

55
## 📋 Prerequisites
66

7-
1. **PyPI Account**: Create accounts on both [PyPI](https://pypi.org) and [Test PyPI](https://test.pypi.org)
7+
1. **PyPI Account**: Create an account on [PyPI](https://pypi.org)
88
2. **GitHub Repository**: Your Israeli Queue repository on GitHub
99
3. **Admin Access**: You need admin access to the repository to set up secrets
1010

11-
## 🔑 Step 1: Create API Tokens
11+
## 🔑 Step 1: Create an API Token
1212

13-
### PyPI Production Token
1413
1. Go to [PyPI Account Settings](https://pypi.org/manage/account/)
1514
2. Scroll to "API tokens" section
1615
3. Click "Add API token"
1716
4. Token name: `IsraeliQueue-GitHub-Actions`
1817
5. Scope: "Entire account" (or specific to your project if it exists)
1918
6. Copy the token (starts with `pypi-`)
2019

21-
### Test PyPI Token
22-
1. Go to [Test PyPI Account Settings](https://test.pypi.org/manage/account/)
23-
2. Repeat the same process as above
24-
3. Copy the token (starts with `pypi-`)
25-
26-
## 🔒 Step 2: Add Secrets to GitHub
20+
## 🔒 Step 2: Add Secret to GitHub
2721

2822
1. Go to your GitHub repository
2923
2. Click **Settings****Secrets and variables****Actions**
3024
3. Click **New repository secret**
31-
4. Add these secrets:
25+
4. Add this secret:
3226

3327
| Secret Name | Value | Description |
3428
|-------------|-------|-------------|
3529
| `PYPI_API_TOKEN` | `pypi-...` | Your PyPI production token |
36-
| `TEST_PYPI_API_TOKEN` | `pypi-...` | Your Test PyPI token |
3730

38-
## 🌍 Step 3: Create GitHub Environments (Optional)
31+
## 🌍 Step 3: Create a GitHub Environment (Optional)
3932

40-
For additional security, create environments:
33+
For additional security, create an environment:
4134

4235
1. Go to **Settings****Environments**
43-
2. Create two environments:
44-
- `pypi` (for production releases)
45-
- `test-pypi` (for test releases)
36+
2. Create environment: `pypi` (for production releases)
4637
3. Add protection rules if desired (e.g., require reviews)
4738

4839
## 🚀 Step 4: How the Workflow Works
4940

50-
### Automatic Test Publishing
51-
- **Trigger**: Push to `main` branch
52-
- **Action**: Publishes to Test PyPI automatically
53-
- **Purpose**: Test that packaging works correctly
54-
5541
### Production Publishing
5642
- **Trigger**: Create a GitHub release
5743
- **Action**: Publishes to production PyPI
@@ -84,14 +70,10 @@ gh release create v2.0.0 --title "Release v2.0.0" --notes "Major update with imp
8470
### Check Workflow Status
8571
- Go to **Actions** tab to see workflow runs
8672
- Check for any failures and review logs
87-
- Verify packages appear on PyPI/Test PyPI
73+
- Verify the package appears on PyPI
8874

8975
### Verify Installation
9076
```bash
91-
# Test PyPI
92-
pip install -i https://test.pypi.org/simple/ IsraeliQueue
93-
94-
# Production PyPI (after release)
9577
pip install IsraeliQueue
9678
```
9779

@@ -107,7 +89,6 @@ pip install IsraeliQueue
10789
**Package Already Exists**
10890
- PyPI doesn't allow overwriting versions
10991
- Increment version number in your release
110-
- Use `skip-existing: true` for test uploads
11192

11293
**Build Failures**
11394
- Check that all tests pass locally
@@ -129,7 +110,6 @@ pip install IsraeliQueue
129110
Once set up, your workflow will:
130111

131112
- ✅ Run tests on every push
132-
- ✅ Publish to Test PyPI on main branch
133113
- ✅ Publish to production PyPI on releases
134114
- ✅ Generate build artifacts
135115
- ✅ Provide security scanning

0 commit comments

Comments
 (0)