debug: switch to using tar to package build data
This commit is contained in:
parent
f3e50526e4
commit
918b69a1c8
|
@ -15,18 +15,27 @@ jobs:
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build --if-present
|
- run: npm run build --if-present
|
||||||
|
- name: Archive Release
|
||||||
|
uses: thedoctor0/zip-release@0.7.1
|
||||||
|
with:
|
||||||
|
type: tar
|
||||||
|
filename: build.tar.gz
|
||||||
|
exclusions: "*.git*"
|
||||||
- name: Cache build
|
- name: Cache build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: cache-${{ github.run_id }}-${{ github.run_attempt }}
|
name: cache-${{ github.run_id }}-${{ github.run_attempt }}
|
||||||
path: ./
|
path: build.tar.gz
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- name: Fetch build cache
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: cache-${{ github.run_id }}-${{ github.run_attempt }}
|
name: cache-${{ github.run_id }}-${{ github.run_attempt }}
|
||||||
|
- name: Extract build cache
|
||||||
|
run: tar xvf build.tar.gz && rm build.tar.gz -f
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
uses: shimataro/ssh-key-action@v2
|
uses: shimataro/ssh-key-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue