Skip to content

Commit 1fc1da0

Browse files
authored
Merge pull request #13 from forcedotcom/simplifyPublish
Simplified publish workflow.
2 parents 5cdb01f + 308c536 commit 1fc1da0

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
8+
publish:
99
runs-on: ubuntu-latest
10-
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/project/salesforce-data-customcode/
1113
steps:
1214
- name: Checkout code
1315
uses: actions/checkout@v4
@@ -28,38 +30,6 @@ jobs:
2830
- name: Build package
2931
run: make package
3032

31-
- name: Store package
32-
uses: actions/upload-artifact@v4
33-
with:
34-
name: dist
35-
path: dist/
36-
37-
publish:
38-
needs: build
39-
runs-on: ubuntu-latest
40-
environment:
41-
name: pypi
42-
url: https://pypi.org/project/salesforce-data-customcode/
43-
steps:
44-
- name: Checkout code
45-
uses: actions/checkout@v4
46-
47-
- name: Set up Python
48-
uses: actions/setup-python@v5
49-
with:
50-
python-version: '3.11'
51-
52-
- name: Install Poetry
53-
run: |
54-
python -m pip install --upgrade pip
55-
pip install poetry
56-
57-
- name: Download package
58-
uses: actions/download-artifact@v4
59-
with:
60-
name: dist
61-
path: dist/
62-
6333
- name: Publish to PyPI
6434
env:
6535
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)