Skip to content

Commit

Permalink
Fix release Github workflow. (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwajerowicz authored Aug 14, 2020
1 parent 38258d2 commit d27e274
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 36 deletions.
38 changes: 2 additions & 36 deletions .github/workflows/ci-delta.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration Service
name: Continuous Integration Delta
on:
push:
branches:
Expand Down Expand Up @@ -71,38 +71,4 @@ jobs:
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project delta" clean coverage test coverageReport coverageAggregate
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
release:
if: github.event_name == 'release'
runs-on: ubuntu-latest
strategy:
fail-fast: true
env:
CI: true
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }}
steps:
- uses: actions/[email protected]
- name: Cache Coursier
uses: actions/[email protected]
with:
path: ~/.cache/coursier
key: ${{ runner.os }}-coursier-scala-${{ hashFiles('**/*.sbt') }}
restore-keys: ${{ runner.os }}-coursier-scala-
- uses: olafurpg/setup-scala@v5
with:
java-version: [email protected]
- name: SetVersion
run: echo ::set-env name=VERSION::$(echo ${GITHUB_REF:11})
- name: PublishToBintray
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project delta" releaseEarly
- name: PublishToDockerHub
run: |
sbt -Dsbt.color=always -Dsbt.supershell=false "project delta" ";set Docker/version := \"${{ env.VERSION }}\"; docker:publishLocal"
echo ${{ secrets.DOCKER_PASS }} | docker login --username ${{ secrets.DOCKER_USER }} --password-stdin
docker push bluebrain/nexus-delta:${{ env.VERSION }}
- name: RecordCoverage
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project delta" clean coverage test coverageReport coverageAggregate
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
run: |
echo ${{ secrets.DOCKER_PASS }} | docker login --username ${{ secrets.DOCKER_USER }} --password-stdin
docker push bluebrain/nexus-cli:${{ env.VERSION }}
docker push bluebrain/nexus-delta:${{ env.VERSION }}
- name: RecordCoverage
run: sbt -Dsbt.color=always -Dsbt.supershell=false clean coverage test coverageReport coverageAggregate
- uses: codecov/codecov-action@v1
Expand Down

0 comments on commit d27e274

Please sign in to comment.