Skip to content

Commit

Permalink
workflow try
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoJavierPizarro committed May 15, 2023
1 parent acc24ba commit 39e8e16
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@ jobs:
- name: Build APK
run: flutter build apk

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release v${{ github.run_number }}
draft: false
prerelease: false

- name: Upload APK
id: upload_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/app/outputs/flutter-apk/app-release.apk
asset_name: MyApp-v${{ github.run_number }}.apk
asset_content_type: application/vnd.android.package-archive
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.TOKEN }}
# with:
# tag_name: v${{ github.run_number }}
# release_name: Release v${{ github.run_number }}
# draft: false
# prerelease: false

# - name: Upload APK
# id: upload_asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: build/app/outputs/flutter-apk/app-release.apk
# asset_name: MyApp-v${{ github.run_number }}.apk
# asset_content_type: application/vnd.android.package-archive


# - name: Create a Release APK
# uses: ncipollo/release-action@v1
# with:
# artifacts: "build/app/outputs/apk/release/*.apk"
# token: ${{ secrets.TOKEN }}
- name: Create a Release APK
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*.apk"
token: ${{ secrets.TOKEN }}

0 comments on commit 39e8e16

Please sign in to comment.