Skip to content

Commit

Permalink
Release runner.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha authored Dec 10, 2023
1 parent 57ce034 commit b3cb85d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,24 @@ jobs:
with:
name: backend-artifacts
path: backend/runner/target/runner.jar
- name: Release runner
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: softprops/action-gh-release@v1
with:
name: runner-${{ github.sha }}
files: backend/runner/target/runner.jar
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


# Push location independent image to GitHub Packages.
push-docker-image:
# Ensure build job passes before pushing image.
needs: [build-frontend, build-backend]

runs-on: ubuntu-latest
if: "github.event_name == 'push' && github.ref == 'refs/heads/main'"
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
# SETUP
Expand Down Expand Up @@ -112,7 +122,7 @@ jobs:
needs: [push-docker-image]

runs-on: ubuntu-latest
if: "github.event_name == 'push' && github.ref == 'refs/heads/main'"
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit b3cb85d

Please sign in to comment.