-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #384 from rosflight/auto_release
Automatically build and deploy releases
- Loading branch information
Showing
3 changed files
with
78 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,39 @@ | ||
--- | ||
name: "pre-release" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
pre-release: | ||
name: "Pre Release" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: clone | ||
run: git submodule update --init --recursive | ||
- name: install toolchain | ||
run: | | ||
sudo add-apt-repository -y -u ppa:team-gcc-arm-embedded/ppa | ||
sudo apt -y install gcc-arm-embedded | ||
- name: check toolchain | ||
run: arm-none-eabi-gcc --version | ||
- name: make_f4 | ||
run: make BOARD=REVO -j4 -l4 | ||
- name: make_f1 | ||
run: make BOARD=NAZE -j4 -l4 | ||
|
||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "pre-release" | ||
prerelease: true | ||
title: "Development Build" | ||
files: | | ||
boards/airbourne/build/rosflight_REVO_Release.elf | ||
boards/airbourne/build/rosflight_REVO_Release.bin | ||
boards/breezy/build/rosflight_NAZE_Release.elf | ||
boards/breezy/build/rosflight_NAZE_Release.hex |
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,37 @@ | ||
--- | ||
name: "Release" | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
release: | ||
name: "Release" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: clone | ||
run: git submodule update --init --recursive | ||
- name: install toolchain | ||
run: | | ||
sudo add-apt-repository -y -u ppa:team-gcc-arm-embedded/ppa | ||
sudo apt -y install gcc-arm-embedded | ||
- name: check toolchain | ||
run: arm-none-eabi-gcc --version | ||
- name: make_f4 | ||
run: make BOARD=REVO -j4 -l4 | ||
- name: make_f1 | ||
run: make BOARD=NAZE -j4 -l4 | ||
|
||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
boards/airbourne/build/rosflight_REVO_Release.elf | ||
boards/airbourne/build/rosflight_REVO_Release.bin | ||
boards/breezy/build/rosflight_NAZE_Release.elf | ||
boards/breezy/build/rosflight_NAZE_Release.hex |
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