chore: 일시적으로 2019년 QueryPie 로고를 사용합니다. (#504) #1
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: Deploy on Staging | |
| on: | |
| push: | |
| branches: | |
| # It deploys on git push to branch main automatically. | |
| - "main" | |
| workflow_dispatch: | |
| inputs: | |
| BRANCH: | |
| description: "Branch to Deploy" | |
| required: true | |
| default: "main" | |
| type: "string" | |
| defaults: | |
| run: | |
| working-directory: scripts/deploy | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| env: | |
| BRANCH: ${{ github.event_name == 'push' && github.ref_name || inputs.BRANCH }} | |
| TARGET_ENV: 'staging' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: npm ci --silent | |
| - name: Create .env file | |
| run: | | |
| echo "VERCEL_TOKEN=${{ secrets.VERCEL_TOKEN }}" >> .env | |
| echo "BRANCH=${{ env.BRANCH }}" >> .env | |
| echo "TARGET_ENV=${{ env.TARGET_ENV }}" >> .env | |
| - name: Cat .env file | |
| run: cat .env | |
| - name: Run Deploy Script | |
| run: npm run deploy |