Skip to content

Commit c91bcf5

Browse files
committed
update workflow
1 parent d4369e6 commit c91bcf5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,44 @@ jobs:
1919
steps:
2020
- name: checkout
2121
uses: actions/checkout@v2
22-
2322
- uses: coursier/cache-action@v6
2423

24+
- name: compile for ${{ matrix.os }}
25+
run: |
26+
./sbt compile
27+
2528
- uses: graalvm/setup-graalvm@v1
29+
if: ${{ contains(github.event.ref, 'tags') }}
2630
with:
2731
version: 'latest'
2832
java-version: '17'
2933
components: 'native-image'
3034
github-token: ${{ secrets.GITHUB_TOKEN }}
3135

36+
3237
- name: build for ${{ matrix.os }}
38+
if: ${{ contains(github.event.ref, 'tags') }}
3339
run: |
3440
./sbt graalvm-native-image:packageBin
3541
3642
# disable on window: https://github.com/upx/upx/issues/559
3743
- name: run upx on ${{ matrix.os }}
3844
uses: svenstaro/upx-action@v2
45+
if: ${{ contains(github.event.ref, 'tags') }}
3946
with:
4047
file: target/graalvm-native-image/scala-interactive-update
4148
args: --best --lzma
4249

4350
- name: upload ${{ matrix.os }}
4451
uses: actions/upload-artifact@v2
52+
if: ${{ contains(github.event.ref, 'tags') }}
4553
with:
4654
name: ${{ matrix.artifact-name }}
4755
path: target/graalvm-native-image/scala-interactive-update
4856

49-
- name: inspect-event
50-
run: |
51-
echo "{{ github.event.ref_type }}"
52-
5357
- name: release binaries
5458
uses: svenstaro/upload-release-action@v2
59+
if: ${{ contains(github.event.ref, 'tags') }}
5560
with:
5661
repo_token: ${{ secrets.GITHUB_TOKEN }}
5762
file: target/graalvm-native-image/scala-interactive-update

0 commit comments

Comments
 (0)