[Silver II] Title: 색종이 만들기, Time: 0 ms, Memory: 2156 KB -BaekjoonHub #4
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: Sync to Notion | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '백준/**' # 문제 디렉토리 경로 지정 | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: pip install requests python-dotenv | |
| - name: Run Sync Script | |
| env: | |
| NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | |
| PARENT_PAGE_ID: ${{ secrets.PARENT_PAGE_ID }} | |
| run: python .github/scripts/sync_to_notion.py |