docs: 버전 변경에 대한 문서 수정 #6
Workflow file for this run
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: Publish to pub.dev | |
| on: | |
| push: | |
| tags: | |
| - 'v[0-9]+.[0-9]+.[0-9]+*' | |
| jobs: | |
| publishing: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| steps: | |
| - name: Checkout 코드 | |
| uses: actions/checkout@v3 | |
| with: | |
| token: ${{ secrets.GH_PAT || github.token }} | |
| - name: Dart 설정 | |
| uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: 'stable' | |
| - name: 의존성 설치 | |
| run: dart pub get | |
| - name: 코드 분석 | |
| run: dart analyze | |
| - name: 현재 버전 확인 | |
| run: | | |
| PACKAGE_VERSION=$(grep 'version:' pubspec.yaml | awk '{print $2}') | |
| echo "현재 패키지 버전: $PACKAGE_VERSION" | |
| - name: pub.dev에 패키지 배포 | |
| uses: k-paxian/dart-package-publisher@master | |
| with: | |
| skipTests: true | |
| force: true | |
| accessToken: ${{ secrets.PUB_DEV_ACCESS_TOKEN }} | |
| refreshToken: ${{ secrets.PUB_DEV_REFRESH_TOKEN }} |