Skip to content

Commit

Permalink
πŸ“¦ chore: ν”„λ‘œμ νŠΈ μžλ™ λΉŒλ“œ 및 배포 μ›Œν¬ν”Œλ‘œμš°λ₯Ό 생성
Browse files Browse the repository at this point in the history
- Chrome, Firefox 버전에 λŒ€ν•΄ 각각 진행
  • Loading branch information
wzrabbit committed Oct 14, 2024
1 parent 17f8797 commit abfdcd7
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/project-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy Project

on:
push:
branches: ['chore/automate-project-deploy', 'develop', 'main']

jobs:
build-and-deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
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
- name: Build MV2 Project (for Firefox)
run: |
npm run build:firefox
- name: Deploy MV3 Project (for Chrome)
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output/chrome-mv3
destination_dir: v${{ env.VERSION }}-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: v${{ env.VERSION }}-firefox-mv2
publish_branch: deploy
keep_files: true

0 comments on commit abfdcd7

Please sign in to comment.