Skip to content

Commit

Permalink
Update release build
Browse files Browse the repository at this point in the history
  • Loading branch information
meiXXI committed Jul 29, 2020
1 parent 496dab9 commit fe3275f
Showing 1 changed file with 27 additions and 30 deletions.
57 changes: 27 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- Bambi-*
- '*'

jobs:
docker-build:
Expand All @@ -18,13 +18,13 @@ jobs:
uses: actions/checkout@v2

- name: Build docker container
run: docker build -t docker.pkg.github.com/cip4/bambi/bambi:${GITHUB_REF##*Bambi-} --build-arg VERSION=${GITHUB_REF##*Bambi-} --build-arg BUILD_NUMBER=${GITHUB_RUN_NUMBER} --build-arg GIT_REV=${GITHUB_SHA} .
run: docker build -t docker.pkg.github.com/cip4/bambi/bambi:${GITHUB_REF##*/} --build-arg VERSION=${GITHUB_REF##*/} --build-arg BUILD_NUMBER=${GITHUB_RUN_NUMBER} --build-arg GIT_REV=${GITHUB_SHA} .

- name: Login to docker.pkg.github.com
run: docker login docker.pkg.github.com -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}

- name: Push docker container
run: docker push docker.pkg.github.com/cip4/bambi/bambi:${GITHUB_REF##*Bambi-}
run: docker push docker.pkg.github.com/cip4/bambi/bambi:${GITHUB_REF##*/}

windows-build:
runs-on: windows-latest
Expand All @@ -37,11 +37,8 @@ jobs:
- name: Check out sources...
uses: actions/checkout@v2

- name: Debug
run: echo %GITHUB_REF:*Bambi-=%

- name: Build with Gradle
run: ./gradlew build launch4j -PprojectVersion=%GITHUB_REF:*Bambi-=%
run: ./gradlew build launch4j -PprojectVersion=%GITHUB_REF:*tags/=%

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
Expand All @@ -51,26 +48,26 @@ jobs:
tag: ${{ github.ref }}
overwrite: true
file_glob: true

macos-build:
runs-on: macos-latest
steps:
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8

- name: Check out sources...
uses: actions/checkout@v2

- name: Build with Gradle
run: ./gradlew createDmg -PprojectVersion=${GITHUB_REF##*Bambi-}

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/distributions/*.dmg
tag: ${{ github.ref }}
overwrite: true
file_glob: true
#
# macos-build:
# runs-on: macos-latest
# steps:
# - name: Set up JDK 8
# uses: actions/setup-java@v1
# with:
# java-version: 8
#
# - name: Check out sources...
# uses: actions/checkout@v2
#
# - name: Build with Gradle
# run: ./gradlew createDmg -PprojectVersion=${GITHUB_REF##*/}
#
# - name: Upload binaries to release
# uses: svenstaro/upload-release-action@v1-release
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: build/distributions/*.dmg
# tag: ${{ github.ref }}
# overwrite: true
# file_glob: true

0 comments on commit fe3275f

Please sign in to comment.