Skip to content

Commit

Permalink
Separate build and publish steps in dictionary build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Feb 4, 2024
1 parent 5c85ce4 commit 506b39a
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/daily-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 506b39a

Please sign in to comment.