-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding actions for automated builds (#25)
* Adding actions * fixing linux action * fixing linux action * Testing mac upload artifact * Testing mac upload artifact * testing windows upload * testing linux and improving mac and windows * Testing release * Testing release * fixing * fixing * fix * fix * fix * Tried a different approach * Adding release * fix * Limiting to tags
- Loading branch information
1 parent
2ed0fb5
commit 587406a
Showing
2 changed files
with
118 additions
and
4 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
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,117 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: fire_atlas_editor | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'stable' | ||
- run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev | ||
- run: flutter config --enable-linux-desktop | ||
- run: flutter build linux | ||
- name: Zips the build | ||
uses: papeloto/action-zip@v1 | ||
with: | ||
files: fire_atlas_editor/build/linux/x64/release/bundle/ | ||
dest: fa_linux.zip | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: fa_linux | ||
path: fa_linux.zip | ||
|
||
mac: | ||
runs-on: macos-latest | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: fire_atlas_editor | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'stable' | ||
- run: flutter config --enable-macos-desktop | ||
- run: flutter build macos | ||
- name: Zips the build | ||
uses: papeloto/action-zip@v1 | ||
with: | ||
files: fire_atlas_editor/build/macos/Build/Products/Release/Fire\ Atlas\ Editor.app | ||
dest: fa_osx.zip | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: fa_osx | ||
path: fa_osx.zip | ||
|
||
windows: | ||
runs-on: windows-latest | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: fire_atlas_editor | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'stable' | ||
- run: flutter config --enable-windows-desktop | ||
- run: flutter build windows | ||
- name: Zips the build | ||
uses: papeloto/action-zip@v1 | ||
with: | ||
files: fire_atlas_editor/build/windows/runner/Release/ | ||
dest: fa_windows.zip | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: fa_windows | ||
path: fa_windows.zip | ||
|
||
release: | ||
needs: [linux, mac, windows] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download Linux artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: fa_linux | ||
|
||
- name: Download Mac artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: fa_osx | ||
|
||
- name: Download Windows artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: fa_windows | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
fa_linux.zip | ||
fa_osx.zip | ||
fa_windows.zip | ||
prerelease: true |