-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (39 loc) · 1.13 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'Publish on pypi'
on:
release:
types: [created]
push:
branches: [main]
jobs:
publish:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/langchain-graphrag
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and run dev container task
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/ksachdeva/langchain-graphrag-devcontainer
cacheFrom: ghcr.io/ksachdeva/langchain-graphrag-devcontainer
runCmd: rye build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
skip-existing: true
verbose: true