12
12
13
13
steps :
14
14
- uses : actions/checkout@v3
15
- # - name: set up JDK
16
- # uses: actions/setup-java@v3
17
- # with:
18
- # java-version: '17'
19
- # distribution: 'temurin'
20
- # cache: gradle
21
-
22
- # - name: Grant execute permission for gradlew
23
- # run: chmod +x gradlew
24
- # - name: Build
25
- # run: ./gradlew build
26
- # - name: Build Android
27
- # run: ./gradlew assembleRelease
28
- # - name: Build Web
29
- # run: ./gradlew jsBrowserDistribution # should be called after initial build
30
-
31
- - name : Upload APK
32
- uses : actions/upload-artifact@v1
33
- with :
34
- name : apk
35
- path : artifacts/android/tetris-release.apk
36
-
37
- - name : Upload Msi
38
- uses : actions/upload-artifact@v1
39
- with :
40
- name : msi
41
- path : artifacts/desktop/main/msi/TetrisMP-1.0.0.msi
42
15
43
16
- name : Deploy to GitHub Pages
44
17
48
21
- name : Release
49
22
uses : ncipollo/release-action@v1
50
23
with :
51
- artifacts : " apk/tetris-release.apk, msi/TetrisMP-1.0.0.msi"
52
-
53
- # - name: Release
54
- # uses: softprops/action-gh-release@v1
55
- # with:
56
- # files: |
57
- # apk
58
- # msi
59
-
60
- # - name: Create Release
61
- # uses: actions/create-release@v1
62
- # with:
63
- # release_name: ${{ github.ref_name }}
64
- # tag_name: ${{ github.ref_name }}
65
- #
66
- # - name: Upload Release APK
67
-
68
- # with:
69
- # upload_url: ${{ steps.create_release.outputs.upload_url }}
70
- # asset_path: apk/tetris-mp-release.apk
71
- # #asset_name: ${{ github.event.repository.name }}.apk
72
- # asset_content_type: application/zip
73
- #
74
- # - name: Upload Msi
75
-
76
- # with:
77
- # upload_url: ${{ steps.create_release.outputs.upload_url }}
78
- # asset_path: msi
79
- # #asset_name: ${{ github.event.repository.name }}.apk
80
- # asset_content_type: application/zip
81
-
82
- # release:
83
- # needs: build
84
- # runs-on: ubuntu-latest
85
- # permissions:
86
- # id-token: write
87
- # pages: write
88
- #
89
- # steps:
90
- # - name: Create Release
91
- # uses: actions/create-release@v1
92
- # # env:
93
- # # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94
- # with:
95
- # release_name: ${{ github.ref_name }}
96
- # tag_name: ${{ github.ref_name }}
97
- #
98
- # - name: Upload Release APK
99
-
100
- # # env:
101
- # # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102
- # with:
103
- # upload_url: ${{ steps.create_release.outputs.upload_url }}
104
- # asset_path: apk/tetris-mp-release.apk
105
- # asset_name: ${{ github.event.repository.name }}.apk
106
- # asset_content_type: application/zip
24
+ artifacts : " artifacts/desktop/main/msi/TetrisMP-1.0.0.msi, artifacts/android/tetris-release.apk"
0 commit comments