Skip to content

Commit

Permalink
ci: remove unnecessary archive step
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 14, 2024
1 parent 98232ef commit bf3fb89
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,6 @@ jobs:
with:
name: build-js-artifacts-${{ github.sha }}

- name: Unpack JS build artifacts archive
run: tar -xf build-js-artifacts-${{ github.sha }}.tar

- name: Install macOS build deps
if: runner.os == 'macOS'
run: |
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/tests-build-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,16 @@ jobs:

- name: Get modified files
id: diff
run: git ls-files --others --exclude-standard >> artifacts_list.txt
if: ${{ steps.check-artifact.outputs.exists != 'true' }}

- name: Create an archive of built files
run: xargs -a artifacts_list.txt tar cvf build-js-artifacts-${{ github.sha }}.tar
run: |
files=$(git ls-files --others --exclude-standard)
echo "files=$files" >> $GITHUB_OUTPUT
if: ${{ steps.check-artifact.outputs.exists != 'true' }}

- name: Upload the archive of built files
uses: actions/upload-artifact@v4
with:
name: build-js-artifacts-${{ github.sha }}
path: build-js-artifacts-${{ github.sha }}.tar
path: ${{ steps.diff.outputs.files }}
retention-days: 1
if-no-files-found: error
if: ${{ steps.check-artifact.outputs.exists != 'true' }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/tests-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ jobs:
with:
name: build-js-artifacts-${{ github.sha }}

- name: Unpack JS build artifacts archive
run: tar -xf build-js-artifacts-${{ github.sha }}.tar

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/tests-dashmate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ jobs:
with:
name: build-js-artifacts-${{ github.sha }}

- name: Unpack JS build artifacts archive
run: tar -xvf build-js-artifacts-${{ github.sha }}.tar

- name: Replace with pre-built images
run: |
set -x
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/tests-js-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ jobs:
with:
name: build-js-artifacts-${{ github.sha }}

- name: Unpack JS build artifacts archive
run: tar -xf build-js-artifacts-${{ github.sha }}.tar

- name: Run ESLinter
run: yarn workspace "${{ inputs.package }}" lint

Expand Down Expand Up @@ -74,9 +71,6 @@ jobs:
with:
name: build-js-artifacts-${{ github.sha }}

- name: Unpack JS build artifacts archive
run: tar -xf build-js-artifacts-${{ github.sha }}.tar

- name: Create necessary dotenv files
run: |
cp packages/dapi/.env.example packages/dapi/.env
Expand Down

0 comments on commit bf3fb89

Please sign in to comment.