Skip to content

Commit

Permalink
Run workflow on push
Browse files Browse the repository at this point in the history
  • Loading branch information
krabiworld committed Dec 16, 2024
1 parent 04bc61b commit 72b5b7a
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ name: Build Foxogram Desktop

on:
push:
branches: [ "main" ]

permissions:
contents: write
branches:
- workflow

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
os: [ macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +22,7 @@ jobs:
- name: Build Foxogram
run: |
mkdir cmake-build
cmake -DCMAKE_BUILD_TYPE=Release -DIXWEBSOCKET_INSTALL:BOOL=OFF -DCMAKE_INSTALL_PREFIX=foxogram -B cmake-build
cmake -DCMAKE_BUILD_TYPE=Release -DIXWEBSOCKET_INSTALL:BOOL=OFF -DCMAKE_INSTALL_PREFIX=foxogram -DCMAKE_MAKE_PROGRAM=ninja -B cmake-build
cmake --build cmake-build --target install
- name: Archive Foxogram
Expand All @@ -41,19 +39,3 @@ jobs:
with:
name: ${{ matrix.os }}.zip
path: ${{ matrix.os }}.zip

upload:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4

- name: List files
run: ls -la

- name: Create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.run_id }}
files: "*-latest.zip"

0 comments on commit 72b5b7a

Please sign in to comment.