mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-15 16:06:54 +03:00
fix indent
This commit is contained in:
150
.github/workflows/build.yaml
vendored
150
.github/workflows/build.yaml
vendored
@@ -162,10 +162,6 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./code/.pio/build/esp32cam/firmware.bin
|
|
||||||
./code/.pio/build/esp32cam/partitions.bin
|
|
||||||
./code/.pio/build/esp32cam/bootloader.bin
|
|
||||||
./sd-card/html/version.txt
|
|
||||||
./dist
|
./dist
|
||||||
key: ${{ github.run_number }}-pack-for-OTA-v2
|
key: ${{ github.run_number }}-pack-for-OTA-v2
|
||||||
|
|
||||||
@@ -230,90 +226,90 @@ jobs:
|
|||||||
needs: [pack-for-OTA-v2, pack-for-fresh-install]
|
needs: [pack-for-OTA-v2, pack-for-fresh-install]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Get generated files from cache
|
- name: Get generated files from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./code/.pio/build/esp32cam/firmware.bin
|
./code/.pio/build/esp32cam/firmware.bin
|
||||||
./code/.pio/build/esp32cam/partitions.bin
|
./code/.pio/build/esp32cam/partitions.bin
|
||||||
./code/.pio/build/esp32cam/bootloader.bin
|
./code/.pio/build/esp32cam/bootloader.bin
|
||||||
./sd-card/html/version.txt
|
./sd-card/html/version.txt
|
||||||
key: ${{ github.run_number }}
|
key: ${{ github.run_number }}
|
||||||
|
|
||||||
# import the changes from
|
# import the changes from
|
||||||
- name: Get generated files from cache
|
- name: Get generated files from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./dist
|
./dist
|
||||||
key: ${{ github.run_number }}-pack-for-OTA-v2
|
key: ${{ github.run_number }}-pack-for-OTA-v2
|
||||||
|
|
||||||
# import cached artifacts from pack-for-fresh-install
|
# import cached artifacts from pack-for-fresh-install
|
||||||
- name: Get generated files from cache
|
- name: Get generated files from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./firmware
|
./firmware
|
||||||
key: ${{ github.run_number }}-pack-for-fresh-install
|
key: ${{ github.run_number }}-pack-for-fresh-install
|
||||||
|
|
||||||
- name: Set Variables
|
- name: Set Variables
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||||
|
|
||||||
|
|
||||||
- name: Prepare artifacts for release
|
- name: Prepare artifacts for release
|
||||||
run: |
|
run: |
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
# create a update.zip like "update__rolling"
|
# create a update.zip like "update__rolling"
|
||||||
cd ./dist
|
cd ./dist
|
||||||
zip -r ../release/update.zip .
|
zip -r ../release/update.zip .
|
||||||
cd ../firmware
|
cd ../firmware
|
||||||
zip -r ../release/initial_esp32_setup.zip .
|
zip -r ../release/initial_esp32_setup.zip .
|
||||||
|
|
||||||
|
|
||||||
# extract the version used in next step
|
# extract the version used in next step
|
||||||
- id: get_version
|
- id: get_version
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: battila7/get-version-action@v2
|
uses: battila7/get-version-action@v2
|
||||||
|
|
||||||
# the changelog [unreleased] will now be changed to the release version
|
# the changelog [unreleased] will now be changed to the release version
|
||||||
- name: Update changelog
|
- name: Update changelog
|
||||||
uses: thomaseizinger/keep-a-changelog-new-release@v1
|
uses: thomaseizinger/keep-a-changelog-new-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
changelogPath: Changelog.md
|
changelogPath: Changelog.md
|
||||||
version: ${{ steps.get_version.outputs.version-without-v }}
|
version: ${{ steps.get_version.outputs.version-without-v }}
|
||||||
|
|
||||||
# the release notes will be extracted from changelog
|
# the release notes will be extracted from changelog
|
||||||
- name: Extract release notes
|
- name: Extract release notes
|
||||||
id: extract-release-notes
|
id: extract-release-notes
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: ffurrer2/extract-release-notes@v1
|
uses: ffurrer2/extract-release-notes@v1
|
||||||
with:
|
with:
|
||||||
changelog_file: Changelog.md
|
changelog_file: Changelog.md
|
||||||
|
|
||||||
|
|
||||||
# Releases should only be created on master by tagging the last commit.
|
# Releases should only be created on master by tagging the last commit.
|
||||||
# all artifacts in firmware folder pushed to the release
|
# all artifacts in firmware folder pushed to the release
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.get_version.outputs.version-without-v }}
|
name: ${{ steps.get_version.outputs.version-without-v }}
|
||||||
body: ${{ steps.extract-release-notes.outputs.release_notes }}
|
body: ${{ steps.extract-release-notes.outputs.release_notes }}
|
||||||
files: |
|
files: |
|
||||||
release/*
|
release/*
|
||||||
|
|
||||||
|
|
||||||
# Commit&Push Changelog to master branch. Must be manually merged back to rolling
|
# Commit&Push Changelog to master branch. Must be manually merged back to rolling
|
||||||
- name: Commit changes and push changes
|
- name: Commit changes and push changes
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
git add Changelog.md
|
git add Changelog.md
|
||||||
git commit Changelog.md -m "Update Changelog.md for ${{github.event.inputs.versionIncrement}} release"
|
git commit Changelog.md -m "Update Changelog.md for ${{github.event.inputs.versionIncrement}} release"
|
||||||
git push origin HEAD:master
|
git push origin HEAD:master
|
||||||
|
|||||||
Reference in New Issue
Block a user