Skip to content

Commit

Permalink
test only publish, disable compile and test
Browse files Browse the repository at this point in the history
  • Loading branch information
bekiroguz committed Sep 23, 2024
1 parent ec0e519 commit 5733df9
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,36 @@ on:
branches: ['**']
tags: [v*]
jobs:
ci:
# run on 1) push, 2) manual trigger, 3) external PRs
# do not run on internal since those will be run by push to branch
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# ci:
# # run on 1) push, 2) manual trigger, 3) external PRs
# # do not run on internal since those will be run by push to branch
# if: |
# github.event_name == 'push' ||
# github.event_name == 'workflow_dispatch' ||
# github.event.pull_request.head.repo.full_name != github.repository
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: sbt
- name: Run tests and generate coverage report
run: |-
cp .jvmopts-ci .jvmopts
sbt coverage compile coverageReport && bash <(curl -s https://codecov.io/bash)
- name: Prepare release notes
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Set up JDK 17
# uses: actions/setup-java@v4
# with:
# distribution: temurin
# java-version: 17
# cache: sbt
# - name: Run tests and generate coverage report
# run: |-
# cp .jvmopts-ci .jvmopts
# sbt coverage compile coverageReport && bash <(curl -s https://codecov.io/bash)
# - name: Prepare release notes
# uses: release-drafter/release-drafter@v5
# with:
# config-name: release-drafter.yml
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
name: Publish release
# needs: [ci]
Expand All @@ -54,8 +54,8 @@ jobs:
distribution: temurin
java-version: 17
cache: sbt
- name: Compile
run: sbt compile
# - name: Compile
# run: sbt compile
- name: Publish artifacts
run: sbt ci-release
env:
Expand Down

0 comments on commit 5733df9

Please sign in to comment.