Skip to content

Merge pull request #4 from DevoTalk/flexible-endpoints #52

Merge pull request #4 from DevoTalk/flexible-endpoints

Merge pull request #4 from DevoTalk/flexible-endpoints #52

Workflow file for this run

name: Build and publish .NET MAUI App Android
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup Keystore File
run: |
echo "${{ secrets.KEYSTORE_FILE }}" > FastCfIPScanner.keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD_GPG }}" --batch FastCfIPScanner.keystore.asc > FastCfIPScanner.keystore
- name: Install .NET MAUI
run: dotnet workload install maui
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release -f net8.0-android /p:AndroidSigningKeyStore=FastCfIPScanner.keystore /p:AndroidSigningKeyAlias=key /p:AndroidSigningKeyPass="${{ secrets.KEYSTORE_PASSWORD }}" /p:AndroidSigningStorePass="${{ secrets.KEYSTORE_PASSWORD_ALIAS }}" --no-restore
- name: List directory contents
run: |
ls -r
- name: Create Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.TOKEN }} # Replace with your actual secret token
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: ./**/*.apk