Skip to content

Commit

Permalink
Merge pull request #1217 from zyfra/feat/ci-artifacts
Browse files Browse the repository at this point in the history
feat: cache to artifacts
  • Loading branch information
ZurabDev authored Dec 18, 2023
2 parents 102ac52 + 1800f7e commit 0219536
Show file tree
Hide file tree
Showing 9 changed files with 353 additions and 489 deletions.
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

0 comments on commit 0219536

Please sign in to comment.