Skip to content

Commit

Permalink
actions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-dev committed Sep 7, 2022
1 parent 0f4e38a commit a61c81f
Showing 1 changed file with 1 addition and 83 deletions.
84 changes: 1 addition & 83 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,6 @@ jobs:

steps:
- uses: actions/checkout@v3
# - name: set up JDK
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'temurin'
# cache: gradle

# - name: Grant execute permission for gradlew
# run: chmod +x gradlew
# - name: Build
# run: ./gradlew build
# - name: Build Android
# run: ./gradlew assembleRelease
# - name: Build Web
# run: ./gradlew jsBrowserDistribution # should be called after initial build

- name: Upload APK
uses: actions/upload-artifact@v1
with:
name: apk
path: artifacts/android/tetris-release.apk

- name: Upload Msi
uses: actions/upload-artifact@v1
with:
name: msi
path: artifacts/desktop/main/msi/TetrisMP-1.0.0.msi

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
Expand All @@ -48,59 +21,4 @@ jobs:
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "apk/tetris-release.apk, msi/TetrisMP-1.0.0.msi"

# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: |
# apk
# msi

# - name: Create Release
# uses: actions/create-release@v1
# with:
# release_name: ${{ github.ref_name }}
# tag_name: ${{ github.ref_name }}
#
# - name: Upload Release APK
# uses: actions/[email protected]
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: apk/tetris-mp-release.apk
# #asset_name: ${{ github.event.repository.name }}.apk
# asset_content_type: application/zip
#
# - name: Upload Msi
# uses: actions/[email protected]
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: msi
# #asset_name: ${{ github.event.repository.name }}.apk
# asset_content_type: application/zip

# release:
# needs: build
# runs-on: ubuntu-latest
# permissions:
# id-token: write
# pages: write
#
# steps:
# - name: Create Release
# uses: actions/create-release@v1
## env:
## GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# release_name: ${{ github.ref_name }}
# tag_name: ${{ github.ref_name }}
#
# - name: Upload Release APK
# uses: actions/[email protected]
## env:
## GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: apk/tetris-mp-release.apk
# asset_name: ${{ github.event.repository.name }}.apk
# asset_content_type: application/zip
artifacts: "artifacts/desktop/main/msi/TetrisMP-1.0.0.msi, artifacts/android/tetris-release.apk"

0 comments on commit a61c81f

Please sign in to comment.