Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cache to artifacts #1217

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 39 additions & 51 deletions .github/workflows/beta-publish-ng14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ jobs:
- name: 'Build beta versions'
run: npx nx run-many --target=build --all --parallel --max-parallel=3

- name: Save dist in cache...
- name: Upload dist au artifacts...
id: dist-cache-save
uses: actions/cache/save@v3
uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta

deploy_to_doc:
needs: build
Expand All @@ -91,11 +91,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -128,11 +127,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -155,11 +153,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -182,11 +179,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -208,11 +204,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -235,11 +230,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -262,11 +256,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -289,11 +282,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -316,11 +308,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -343,11 +334,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -370,11 +360,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -397,11 +386,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_14-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_14-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand Down
90 changes: 39 additions & 51 deletions .github/workflows/beta-publish-ng15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ jobs:
- name: 'Build beta versions'
run: npx nx run-many --target=build --all --parallel --max-parallel=3

- name: Save dist in cache...
- name: Upload dist as artifacts...
id: dist-cache-save
uses: actions/cache/save@v3
uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta

deploy_to_doc:
needs: build
Expand All @@ -91,11 +91,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -128,11 +127,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -155,11 +153,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -182,11 +179,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -208,11 +204,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -235,11 +230,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -262,11 +256,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -289,11 +282,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -316,11 +308,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -343,11 +334,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -370,11 +360,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand All @@ -397,11 +386,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules_ng_15-

- name: Restore dist in cache
uses: actions/cache/restore@v3
- name: Download dist from artifact
uses: actions/download-artifact@v3
with:
path: ./dist
key: ${{ runner.os }}-node_modules_ng_15-beta
name: dist

- uses: actions/setup-node@v3
with:
Expand Down
Loading
Loading