-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: run
scala-native
only on release
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
Showing
1 changed file
with
3 additions
and
3 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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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 }} | ||
|