Skip to content

Commit

Permalink
πŸ“¦ chore: 폴더λͺ…μ—μ„œ 버전을 μ œκ±°ν•΄ μ—¬λŸ¬ 버전이 배포에 ν¬ν•¨λ˜λŠ” 것을 방지
Browse files Browse the repository at this point in the history
  • Loading branch information
wzrabbit committed Oct 25, 2024
1 parent 797f11d commit 0c88c8d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/project-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy Project

on:
push:
branches: 'main'
branches: ['main', 'chore/remove-project-deploy-version-in-dir']

jobs:
build-and-deploy:
Expand All @@ -24,12 +24,6 @@ jobs:
run: |
npm ci
- name: Get Version from package.json
id: get_version
run: |
VERSION=$(jq -r '.version' package.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Build MV3 Project (for Chrome)
run: |
npm run build
Expand All @@ -43,13 +37,13 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.output/chrome-mv3
destination_dir: ./totamjung/v${{ env.VERSION }}-chrome-mv3
destination_dir: ./chrome-mv3
publish_branch: deploy

- name: Deploy MV2 Project (for Firefox)
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.output/firefox-mv2
destination_dir: ./totamjung/v${{ env.VERSION }}-firefox-mv2
destination_dir: ./firefox-mv2
publish_branch: deploy

0 comments on commit 0c88c8d

Please sign in to comment.