-
Notifications
You must be signed in to change notification settings - Fork 489
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 #104 from skaldo/master
Add Github Actions that build the firmware on every commit
- Loading branch information
Showing
1 changed file
with
48 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,48 @@ | ||
name: Build ATC_Thermometer | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker.pkg.github.com/skaldo/telink-sdk/telink-sdk:latest | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build ATC_Thermometer | ||
env: | ||
TEL_PATH: /opt/Telink_825X_SDK | ||
run: | | ||
cd ATC_Thermometer | ||
make | ||
cd $GITHUB_WORKSPACE | ||
ls -la | ||
- name: Create GitHub release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.run_number }} | ||
release_name: Release ${{ github.run_number }} | ||
draft: false | ||
prerelease: true | ||
- name: upload ATC_Thermometer.bin to releases | ||
id: upload-atc-thermometer-binary | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./ATC_Thermometer.bin | ||
asset_name: ATC_Thermometer.bin | ||
asset_content_type: application/octet-stream |