Skip to content

Commit 7f192dd

Browse files
committed
add nightly build
1 parent f195dad commit 7f192dd

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
name: "Nightly PyPI Build"
21+
22+
on:
23+
schedule:
24+
- cron: "0 0 * * *" # Runs at midnight UTC every day
25+
workflow_dispatch: # Allows manual triggering
26+
27+
jobs:
28+
nightly-build:
29+
uses: ./.github/workflows/pypi-build-artifacts.yml # Reference the PyPI build workflow
30+
with:
31+
VERSION: "0.0.0" # Generate nightly version
32+
RC: "0" # Reset RC for nightly builds
33+
34+
testpypi-publish:
35+
name: Publish to TestPypi
36+
needs:
37+
- nightly-build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: testpypi
41+
url: https://test.pypi.org/p/pyiceberg-kevinliu
42+
43+
permissions:
44+
id-token: write # IMPORTANT: mandatory for trusted publishing
45+
46+
steps:
47+
- name: Download all the artifacts
48+
uses: actions/download-artifact@v4
49+
with:
50+
merge-multiple: true
51+
path: dist/
52+
- name: Publish to TestPyPI
53+
uses: pypa/gh-action-pypi-publish@release/v1
54+
with:
55+
repository-url: https://test.pypi.org/legacy/
56+
skip-existing: true

0 commit comments

Comments
 (0)