From 9763d72cffb750331119c517ee52fc4e69039a60 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Tue, 10 Oct 2023 15:28:29 +0200 Subject: [PATCH] Testing actions --- .github/workflows/frontend.yml | 8 ++++++-- .github/workflows/release.yml | 14 +++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 5de6ab05..9947520a 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -19,8 +19,12 @@ jobs: npm install npm run build + - name: Pack assets + run: | + tar -czf frontend.tar.gz dist + - name: Upload assets - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v2 with: name: frontend - path: frontend/dist \ No newline at end of file + path: frontend.tar.gz \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa345bfc..c548af81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,7 +86,7 @@ jobs: run: | ${{ matrix.build-with }} build --profile release-lto --target ${{ matrix.target }} - - name: Gz asset + - name: Tar gz asset run: | # mv target/${{ matrix.target }}/release-lto/erc20_processor${{ matrix.exe }} target/${{ matrix.target }}/release-lto/erc20_processor${{ matrix.exe }} tar -cf - -C target/${{ matrix.target }}/release-lto/ erc20_processor${{ matrix.exe }} | gzip -9 > erc20_processor.tar.gz @@ -111,3 +111,15 @@ jobs: tag: ${{ github.ref }} overwrite: true body: "Xzipped binary for ${{ matrix.cpu }} ${{ matrix.os }}" + + - name: Build frontend + run: | + cd frontend + npm install + npm run build + + - name: Upload assets + uses: actions/upload-artifact@v3 + with: + name: frontend + path: frontend/dist \ No newline at end of file