// Create a variable called keystorePropertiesFile, and initialize it to your // keystore.properties file, in the rootProject folder. def keystorePropertiesFile = rootProject.file("keystore.properties")
// Initialize a new Properties() object called keystoreProperties. def keystoreProperties = new Properties()
// Load your keystore.properties file into the keystoreProperties object. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
# 创建realease -name:CreateRelease id:create_release uses:actions/create-release@v1 env: GITHUB_TOKEN:${{secrets.GITHUB_TOKEN}} with: tag_name:${{github.ref}} release_name:Release${{github.ref}} draft:false prerelease:false # 上传apk到release -name:UploadReleaseAsset id:upload-release-asset uses:actions/upload-release-asset@v1 env: GITHUB_TOKEN:${{secrets.GITHUB_TOKEN}} with: # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. # See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url:${{steps.create_release.outputs.upload_url}} asset_path:app/build/outputs/apk/release/app-release.apk asset_name:App.apk asset_content_type:application/vnd.android.package-archiv
# 创建realease -name:CreateRelease id:create_release uses:actions/create-release@v1 env: GITHUB_TOKEN:${{secrets.GITHUB_TOKEN}} with: tag_name:${{github.ref}} release_name:Release${{github.ref}} draft:false prerelease:false # 上传apk到release -name:UploadReleaseAsset id:upload-release-asset uses:actions/upload-release-asset@v1 env: GITHUB_TOKEN:${{secrets.GITHUB_TOKEN}} with: # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. # See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url:${{steps.create_release.outputs.upload_url}} asset_path:app/build/outputs/apk/release/app-release.apk asset_name:App.apk asset_content_type:application/vnd.android.package-archiv