๐จ ้จๅไปฃ็ ้ป่พ็ฎๅ #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: | |
| - main # ๆๅฎ่งฆๅๅๆฏ | |
| paths: | |
| - '**' # ็ๆงๆๆๆไปถๅๆด๏ผๅฏๆ้่ฐๆด๏ผ | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Build package | |
| run: uv build # ็ๆๆๅปบไบง็ฉๅฐdist็ฎๅฝ | |
| - name: Save build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-package | |
| path: dist/* # ไธไผ ๆๆๆๅปบไบง็ฉ |