Update ci.yml
This commit is contained in:
parent
6d799d7524
commit
a3d476c584
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -36,7 +36,11 @@ jobs:
|
||||
docker cp lindbergh-builder:/output ./build
|
||||
docker rm lindbergh-builder
|
||||
|
||||
# Archive the build directory
|
||||
# Compress the build directory
|
||||
- name: Compress build directory
|
||||
run: tar -czvf build.tar.gz -C ./build .
|
||||
|
||||
# Archive the build directory as an artifact for debugging
|
||||
- name: Archive build directory
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
@ -45,7 +49,7 @@ jobs:
|
||||
|
||||
# Create a GitHub release and capture the upload URL
|
||||
- name: Create Release
|
||||
id: create_release # Assign an ID to reference the output
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@ -55,13 +59,13 @@ jobs:
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
# Upload the build artifact to the release
|
||||
# Upload the compressed build artifact to the release
|
||||
- name: Upload Release Asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./build
|
||||
asset_path: ./build.tar.gz
|
||||
asset_name: build.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
|
Loading…
x
Reference in New Issue
Block a user