Skip to content

Commit

Permalink
auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Jul 10, 2024
1 parent d4e35eb commit c9b49c7
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish-studio-linux-flathub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ name: Publish Studio Desktop for Linux in Flathub

on:
workflow_dispatch:
workflow_run:
workflows: [Publish Studio Desktop]
types:
- completed

jobs:
deploy-flathub:
name: Deploy in Flathub
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish-studio-linux-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ name: Publish Studio Desktop for Linux in Snap Store

on:
workflow_dispatch:
workflow_run:
workflows: [Publish Studio Desktop]
types:
- completed

jobs:
# Build Snap and upload to Snap Store
deploy-snapcraft:
name: Deploy for Snap Store
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-studio-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- completed

jobs:

# Build Tar GZ and upload
deploy-linux:
name: Deploy for Linux
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish-studio-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ name: Publish Studio Desktop for MacOS

on:
workflow_dispatch:
workflow_run:
workflows: [Publish Studio Desktop]
types:
- completed

jobs:
# Build DMG (x64, arm64) and upload to CDN
deploy-macos:
name: Deploy for MacOS
runs-on: macos-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -17,7 +22,7 @@ jobs:
name: Get Version
id: get-oneware-version
with:
xml-file: './build/props/Base.props'
xml-file: "./build/props/Base.props"
xpath: "//*[local-name()='Project']/*[local-name()='PropertyGroup']/*[local-name()='StudioVersion']"
- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/publish-studio-web.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Publish Studio Web

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
Expand All @@ -13,7 +12,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/publish-studio-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ name: Publish Studio Desktop for Windows

on:
workflow_dispatch:
workflow_run:
workflows: [Publish Studio Desktop]
types:
- completed

jobs:
# Build MSI and Upload to CDN
# Run on local machine that needs to install .NET SDK 8.0, Winget and wingetcreate
deploy-windows:
name: Deploy for Windows
runs-on: self-hosted
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -18,14 +23,14 @@ jobs:
name: Get Version
id: get-oneware-version
with:
xml-file: './build/props/Base.props'
xml-file: "./build/props/Base.props"
xpath: "//*[local-name()='Project']/*[local-name()='PropertyGroup']/*[local-name()='StudioVersion']"
# - name: Setup .NET
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 8.0.x
# - name: Install Wix
# run: dotnet tool install --global wix
# - name: Setup .NET
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 8.0.x
# - name: Install Wix
# run: dotnet tool install --global wix
- name: Publish
run: dotnet build ./studio/OneWare.Studio.Desktop.WindowsInstaller/OneWare.Studio.Desktop.WindowsInstaller.wixproj -c Release -r win-x64 -o ./out
- name: Create Button HTML
Expand Down

0 comments on commit c9b49c7

Please sign in to comment.