-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix release Github workflow. (#1429)
- Loading branch information
1 parent
38258d2
commit d27e274
Showing
2 changed files
with
3 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters