From 506b39a1eb25b43087e0444ac29d2e285b2c837c Mon Sep 17 00:00:00 2001 From: MarvNC Date: Sat, 3 Feb 2024 22:24:30 -0800 Subject: [PATCH] Separate build and publish steps in dictionary build workflow --- .github/workflows/daily-build.yaml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/daily-build.yaml b/.github/workflows/daily-build.yaml index fbf5b38..2912227 100644 --- a/.github/workflows/daily-build.yaml +++ b/.github/workflows/daily-build.yaml @@ -15,16 +15,35 @@ jobs: - name: Install Dependencies run: npm ci - - name: Get Current Date - id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" - - name: Download Latest CSVs run: npm run download - name: Build Dictionary run: npm run buildTermDict + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/* + + publish-release: + needs: build-release + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Download Artifacts + uses: actions/download-artifact@v2 + with: + name: dist + path: dist + + - name: Get Current Date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + - name: Create and Publish Release uses: softprops/action-gh-release@v1 with: