diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29a871a..37b876d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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