debug: switch to using tar to package build data

This commit is contained in:
Derrick Hammer 2023-06-25 02:59:49 -04:00
parent f3e50526e4
commit 918b69a1c8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 14 additions and 5 deletions

View File

@ -15,22 +15,31 @@ jobs:
cache: 'npm'
- run: npm ci
- 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
uses: actions/upload-artifact@v3
with:
name: cache-${{ github.run_id }}-${{ github.run_attempt }}
path: ./
path: build.tar.gz
publish:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v3
with:
name: cache-${{ github.run_id }}-${{ github.run_attempt }}
- name: Fetch build cache
uses: actions/download-artifact@v3
with:
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
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.GITEA_SSH_KEY }}
name: gitea # optional
known_hosts: ${{ secrets.GITEA_KNOWN_HOST }}
- run: npm run semantic-release
- run: npm run semantic-release