1
0
mirror of synced 2025-01-19 01:14:04 +01:00

Update ci.yml

This commit is contained in:
Bobby Dilley 2025-01-09 11:26:02 +00:00 committed by GitHub
parent cf5b0e32d0
commit 73d0c9fb57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,15 +12,19 @@ permissions:
contents: write
jobs:
build:
build-and-release:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Build the Docker image
- name: Build Docker image
run: |
docker build --target lindbergh-build -t lindbergh-loader .
@ -37,24 +41,14 @@ jobs:
name: build-output
path: ./build
release:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: build-output
path: ./build
# Create a GitHub release and upload the artifact
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: "Lindbergh Loader v${{ github.run_number }}"
release_name: "Build v${{ github.run_number }}"
draft: false
prerelease: false