Skip to content

Commit

Permalink
CI: run scala-native only on release
Browse files Browse the repository at this point in the history
scala-native doesn't need to run on push since we don't need to upload
artifacts, and building is already verified as part of `test`.
  • Loading branch information
kitbellew committed Jan 29, 2025
1 parent 58e28e0 commit 073d5f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
with:
name: ${{ matrix.artifact }}
path: scalafmt
- name: Upload release
- name: Upload release to Github
if: github.event_name == 'release'
uses: actions/[email protected]
env:
Expand All @@ -138,6 +138,7 @@ jobs:
asset_name: ${{ matrix.artifact }}
asset_content_type: application/zip
scala-native:
if: github.event_name == 'release'
permissions:
contents: write # for actions/upload-release-asset to upload release asset
strategy:
Expand Down Expand Up @@ -170,8 +171,7 @@ jobs:
with:
name: ${{ matrix.deploy.name }}
path: ${{ env.BINARY_NAME }}
- name: Upload release
if: github.event_name == 'release'
- name: Upload release to Github
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 073d5f9

Please sign in to comment.