Skip to content

Commit

Permalink
[add] parallel building releases
Browse files Browse the repository at this point in the history
  • Loading branch information
VecHK committed Dec 16, 2023
1 parent 845a2c7 commit f4d757c
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ jobs:
echo "${{secrets.DASHBOARD_ENV_DEVELOPMENT}}\n" > ./.env.production
npm install
npm run build:prod
mv dist dashboard
- uses: actions/upload-artifact@v4
with:
name: DashboardBuild
path: dashboard
path: dashboard/dist

build-front:
name: Building Front
Expand All @@ -60,12 +59,11 @@ jobs:
echo "REACT_APP_BUILD_DESCRIPTION=Development version. build:${{ github.run_number }} commit:${{ github.sha }}" >> ./.env.production
yarn install --production=false
yarn build:development
mv build ../
- uses: actions/upload-artifact@v4
with:
name: FrontBuild
path: build
path: front/build

upload-build:
name: upload Builds
Expand All @@ -81,30 +79,31 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: FrontBuild
path: releases
path: releases/dashboard

- name: Display structure of downloaded files
run: |
ls ./releases
echo "-R"
ls -R releases
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'a'

- name: Upload Builds
env:
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_HOST: ${{ secrets.SSH_HOST }}
REMOTE_UPLOAD_PATH: ${{ secrets.DEV_REMOTE_UPLOAD_PATH }}
run: |
cd releases
mv dashboard build/
ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
../scripts/upload.sh
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
# - name: Install SSH Key
# uses: shimataro/ssh-key-action@v2
# with:
# key: ${{ secrets.SSH_PRIVATE_KEY }}
# known_hosts: 'a'

# - name: Upload Builds
# env:
# SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
# SSH_HOST: ${{ secrets.SSH_HOST }}
# REMOTE_UPLOAD_PATH: ${{ secrets.DEV_REMOTE_UPLOAD_PATH }}
# run: |
# cd releases
# mv dashboard build/
# ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
# ../scripts/upload.sh

# - name: get-npm-version
# id: package-version
# uses: martinbeentjes/npm-get-version-action@master

0 comments on commit f4d757c

Please sign in to comment.