-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use github action to compile and publish flatpak and macos bundles
- Loading branch information
Showing
3 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Create Flatpak Bundle | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
flatpak: | ||
name: "Flatpak" | ||
runs-on: ubuntu-latest | ||
container: | ||
image: bilelmoussaoui/flatpak-github-actions:kde-6.6 | ||
options: --privileged | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
repository: glaumar/QRookie | ||
|
||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | ||
with: | ||
bundle: QRookie.flatpak | ||
upload-artifact: false | ||
manifest-path: io.github.glaumar.QRookie.yml | ||
cache-key: flatpak-builder-${{ github.sha }} | ||
|
||
|
||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.TOKEN }} | ||
file: QRookie.flatpak | ||
asset_name: QRookie.flatpak | ||
tag: ${{ github.ref }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Create MacOS Bundle(arm64) | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
repository: glaumar/QRookie | ||
|
||
- name: Install Homebrew | ||
run: | | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
- name: Build | ||
run: | | ||
cd macOs/ | ||
./signApp.sh | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.TOKEN }} | ||
file: macOs/QRookie_arm64.dmg | ||
asset_name: QRookie_macOs_arm64.dmg | ||
tag: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Create MacOS Bundle(x86_64) | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
repository: glaumar/QRookie | ||
|
||
- name: Install Homebrew | ||
run: | | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
- name: Build | ||
run: | | ||
cd macOs/ | ||
./signApp.sh | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.TOKEN }} | ||
file: macOs/QRookie_x86_64.dmg | ||
asset_name: QRookie_macOs_x86_64.dmg | ||
tag: ${{ github.ref }} |