Skip to content

Commit

Permalink
creating releases automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Sep 28, 2023
1 parent b21695b commit 880ac67
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,28 @@ jobs:
path: release.zip
if: ${{ ! matrix.config.python }}

- name: upload windows artifact
uses: actions/upload-release-asset@v1
if: ${{ ! matrix.config.python && startsWith(github.ref, 'refs/tags/') }}
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release.zip
asset_name: windows-binary-no-python.zip
asset_content_type: application/zip

- name: upload windows artifact
uses: actions/upload-release-asset@v1
if: ${{ matrix.config.python && startsWith(github.ref, 'refs/tags/') }}
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release.zip
asset_name: windows-binary.zip
asset_content_type: application/zip

# window-steam-build:
# runs-on: windows-latest
#
Expand Down Expand Up @@ -280,6 +302,19 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: release
uses: actions/create-release@v1
if: startsWith(github.ref, 'refs/tags/')
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}

# - name: Cache Qt Linux Desktop
# id: cache-qt-linux-desktop
# uses: actions/cache@v1
Expand Down Expand Up @@ -583,6 +618,17 @@ jobs:
name: fdroid-android-trial
path: ${{ github.workspace }}/output/android/build/outputs/apk/debug/

- name: upload windows artifact
uses: actions/upload-release-asset@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/output/android/build/outputs/apk/debug/
asset_name: fdroid-android-trial.zip
asset_content_type: application/zip

ios-build:
# The type of runner that the job will run on
runs-on: macos-latest
Expand Down

0 comments on commit 880ac67

Please sign in to comment.