no log: Use variable for UI artifact name

This commit is contained in:
LASER-Yi 2021-06-20 22:56:16 +08:00
parent 9686a3bc36
commit e93ba08790
1 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@ on:
env: env:
UI_DIRECTORY: ./frontend UI_DIRECTORY: ./frontend
UI_ARTIFACT_NAME: ui
jobs: jobs:
Frontend: Frontend:
@ -48,7 +49,7 @@ jobs:
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: "ui" name: ${{ env.UI_ARTIFACT_NAME }}
path: "${{ env.UI_DIRECTORY }}/build" path: "${{ env.UI_DIRECTORY }}/build"
Backend: Backend:
@ -69,7 +70,7 @@ jobs:
- name: Install UI - name: Install UI
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
name: "ui" name: ${{ env.UI_ARTIFACT_NAME }}
path: "${{ env.UI_DIRECTORY }}/build" path: "${{ env.UI_DIRECTORY }}/build"
- name: Install Python dependencies - name: Install Python dependencies