Compare commits

..
3 Commits
Author SHA1 Message Date
Bobby Dilley 5786cdc37d Merge pull request #58 from lindbergh-loader/bobbydilley-patch-1
Update ci.yml
2025-01-16 10:37:32 +00:00
Bobby Dilley 5f90591690 Update ci.yml 2025-01-16 10:36:59 +00:00
Bobby Dilley a3d476c584 Update ci.yml 2025-01-09 11:34:34 +00:00
+11 -5
View File
@@ -36,16 +36,21 @@ jobs:
docker cp lindbergh-builder:/output ./build docker cp lindbergh-builder:/output ./build
docker rm lindbergh-builder 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 - name: Archive build directory
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: build-output name: build-output
path: ./build path: ./build
# Create a GitHub release and capture the upload URL # Create a GitHub release and capture the upload URL (only on push events)
- name: Create Release - name: Create Release
id: create_release # Assign an ID to reference the output if: github.event_name == 'push'
id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -55,13 +60,14 @@ jobs:
draft: false draft: false
prerelease: false prerelease: false
# Upload the build artifact to the release # Upload the compressed build artifact to the release (only on push events)
- name: Upload Release Asset - name: Upload Release Asset
if: github.event_name == 'push'
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build asset_path: ./build.tar.gz
asset_name: build.tar.gz asset_name: build.tar.gz
asset_content_type: application/gzip asset_content_type: application/gzip