Skip to content

Commit cedb730

Browse files
authored
Update release.yml
1 parent 94d2ade commit cedb730

File tree

1 file changed

+13
-46
lines changed

1 file changed

+13
-46
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ on:
33
types: [created]
44
name: Release Artifacts
55
jobs:
6-
release:
7-
name: Release
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
os: [ macos-latest, ubuntu-latest, windows-latest ]
12-
runs-on: ${{ matrix.os }}
13-
if: startsWith(github.ref, 'refs/tags/')
6+
release-ide:
7+
name: Release IDE Plugin
8+
runs-on: ubuntu-latest
149
steps:
1510
- name: Checkout
1611
uses: actions/checkout@v2
@@ -22,43 +17,15 @@ jobs:
2217

2318
- name: Validate gradle wrapper
2419
uses: gradle/wrapper-validation-action@v1
25-
26-
- name: Checkout Gradle Build Cache
27-
uses: actions/cache@v2
28-
with:
29-
path: |
30-
~/.gradle/caches
31-
~/.gradle/wrapper
32-
!~/.gradle/wrapper/dists/**/gradle*.zip
33-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
34-
restore-keys: |
35-
gradle-${{ runner.os }}-
36-
37-
- name: Build Debug
38-
run: ./gradlew build -x test
39-
40-
- name: Build Release App
41-
run: |
42-
./gradlew :desktop:packageUberJarForCurrentOS
43-
./gradlew :desktop:package
44-
45-
- name: Archive Artifacts
46-
uses: actions/upload-artifact@v2
47-
with:
48-
name: distributable-${{ matrix.os }}
49-
if-no-files-found: ignore
50-
path: |
51-
build/**/*.deb
52-
build/**/*.msi
53-
build/compose/jars/*.jar
54-
55-
- name: Release
56-
uses: softprops/action-gh-release@91409e712cf565ce9eff10c87a8d1b11b81757ae
20+
21+
- name: Build IDE Plugin
22+
run: ./gradlew :ide-plugins:intellij:buildPlugin
23+
24+
- name: Upload IDE Plugin
25+
uses: "marvinpinto/action-automatic-releases@latest"
5726
with:
58-
prerelease: ${{ contains(github.event.inputs.version, '-rc') || contains(github.event.inputs.version, '-b') || contains(github.event.inputs.version, '-a') }}
27+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
28+
automatic_release_tag: "latest"
29+
prerelease: false
5930
files: |
60-
build/**/*.deb
61-
build/**/*.msi
62-
build/compose/jars/*.jar
63-
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
ide-plugins/intellij/build/releases/Solitaire Compose.zip

0 commit comments

Comments
 (0)