search ota_applied_flag in both partitions to allow force uplaod of s… #40
Workflow file for this run
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
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
name: Create Draft Release with precompiled firmware assets | |
jobs: | |
build: | |
name: Upload Release Asset | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build project # This would actually build your project, using zip for an example artifact | |
run: | | |
zip --junk-paths my-artifact README.md | |
- uses: actions/checkout@master | |
with: | |
repository: ElegantNetworking/ElegantNetworkingRoot | |
path: ./ElegantNetworkingRoot | |
submodules: 'true' | |
token: ${{ secrets.PAT_TOKEN }} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: true | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | |
asset_path: ./my-artifact.zip | |
asset_name: my-artifact.zip | |
asset_content_type: application/zip | |
# # This is a basic workflow to help you get started with Actions | |
# name: CI | |
# # Controls when the workflow will run | |
# on: | |
# # Triggers the workflow on push or pull request events but only for the main branch | |
# push: | |
# branches: [ main ] | |
# pull_request: | |
# branches: [ main ] | |
# # Allows you to run this workflow manually from the Actions tab | |
# workflow_dispatch: | |
# # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
# jobs: | |
# # This workflow contains a single job called "build" | |
# build: | |
# # The type of runner that the job will run on | |
# runs-on: ubuntu-latest | |
# # Steps represent a sequence of tasks that will be executed as part of the job | |
# steps: | |
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
# - uses: actions/checkout@v3 | |
# # Runs a single command using the runners shell | |
# - name: Run a one-line script | |
# run: echo Hello, world! | |
# # Runs a set of commands using the runners shell | |
# - name: Run a multi-line script | |
# run: | | |
# echo Add other actions to build, | |
# echo test, and deploy your project. |