-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add reusable workflow for upload and download build artifacts in …
…actions (#2000)
- Loading branch information
1 parent
fd6500e
commit 05fd380
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Download and Extract Build Artifacts | ||
description: Download build artifacts for all the packages and extract them to the correct location | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download and Extract | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ci-builds-${{ github.run_id }}-${{ github.run_attempt }} | ||
path: packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build and Upload Artifacts | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
npm_token: | ||
required: true | ||
|
||
jobs: | ||
build-and-upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run Setup | ||
uses: ./.github/actions/setup | ||
with: | ||
npm_token: ${{ secrets.npm_token }} | ||
- name: Build | ||
shell: bash | ||
run: yarn lerna run build --since=origin/master --include-dependencies | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ci-builds-${{ github.run_id }}-${{ github.run_attempt }} | ||
path: | | ||
packages/core/dist/ | ||
packages/style/dist/ | ||
if-no-files-found: ignore |