Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DevoTalk authored Mar 3, 2024
1 parent 1c2cd25 commit def82df
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,36 @@ jobs:
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: Upload artifacts
uses: actions/upload-artifact@v3
publish-release:
needs: build
runs-on: windows-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: published-app
path: ./bin/Release/**

- name: Create GitHub Release (if main branch)
if: github.ref == 'refs/heads/main'
uses: nilsfröhlich/actions-github-release@v3
name: app-release
path: ./bin/Release/net8.0-android/publish/**

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v1.3
release_name: Release v1.3.0
body: |
test
draft: false
prerelease: true

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v1.3" # Use commit SHA for tag name
release_name: "test"
body: "**New Release:** Built and published from commit "
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/Release/net8.0-android/publish/**
asset_name: FastCFIPScanner.zip
asset_content_type: application/zip

0 comments on commit def82df

Please sign in to comment.