Update ci.yml
This commit is contained in:
parent
cf5b0e32d0
commit
73d0c9fb57
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user