mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-13 08:32:08 +00:00
Disable release workflow
This commit is contained in:
parent
d6dfdc314e
commit
b6126e6e63
160
.github/workflows/release.yml
vendored
160
.github/workflows/release.yml
vendored
@ -1,92 +1,92 @@
|
|||||||
name: Make Release
|
# name: Make Release
|
||||||
on:
|
# on:
|
||||||
# Can optionally take parameters from the github UI, more info here https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/#:~:text=You%20can%20now%20create%20workflows,the%20workflow%20is%20run%20on.
|
# # Can optionally take parameters from the github UI, more info here https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/#:~:text=You%20can%20now%20create%20workflows,the%20workflow%20is%20run%20on.
|
||||||
workflow_dispatch:
|
# workflow_dispatch:
|
||||||
# inputs:
|
# # inputs:
|
||||||
|
|
||||||
# Only want to run if version.properties is bumped in master
|
# # Only want to run if version.properties is bumped in master
|
||||||
push:
|
# push:
|
||||||
branches:
|
# branches:
|
||||||
- master
|
# - master
|
||||||
paths:
|
# paths:
|
||||||
- "version.properties"
|
# - "version.properties"
|
||||||
|
|
||||||
jobs:
|
# jobs:
|
||||||
release-build:
|
# release-build:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout code
|
# - name: Checkout code
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
with:
|
# with:
|
||||||
submodules: "recursive"
|
# submodules: "recursive"
|
||||||
|
|
||||||
- name: Setup Python
|
# - name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
# uses: actions/setup-python@v2
|
||||||
with:
|
# with:
|
||||||
python-version: 3.x
|
# python-version: 3.x
|
||||||
|
|
||||||
# Will be available in steps.version.outputs.version
|
# # Will be available in steps.version.outputs.version
|
||||||
- name: Get release version string
|
# - name: Get release version string
|
||||||
run: echo "::set-output name=version::$(./bin/buildinfo.py long)"
|
# run: echo "::set-output name=version::$(./bin/buildinfo.py long)"
|
||||||
id: version
|
# id: version
|
||||||
# Note: we don't use caches on release builds because we don't want to accidentally not have a virgin build machine
|
# # Note: we don't use caches on release builds because we don't want to accidentally not have a virgin build machine
|
||||||
|
|
||||||
- name: Upgrade python tools
|
# - name: Upgrade python tools
|
||||||
# We actually want to run this every time
|
# # We actually want to run this every time
|
||||||
# if: steps.cache-pip.outputs.cache-hit != 'true'
|
# # if: steps.cache-pip.outputs.cache-hit != 'true'
|
||||||
run: |
|
# run: |
|
||||||
python -m pip install --upgrade pip
|
# python -m pip install --upgrade pip
|
||||||
pip install -U platformio meshtastic adafruit-nrfutil littlefs-python
|
# pip install -U platformio meshtastic adafruit-nrfutil littlefs-python
|
||||||
|
|
||||||
- name: Upgrade platformio
|
# - name: Upgrade platformio
|
||||||
run: |
|
# run: |
|
||||||
pio upgrade
|
# pio upgrade
|
||||||
|
|
||||||
- name: Pull web ui
|
# - name: Pull web ui
|
||||||
uses: dsaltares/fetch-gh-release-asset@master
|
# uses: dsaltares/fetch-gh-release-asset@master
|
||||||
with:
|
# with:
|
||||||
repo: "meshtastic/meshtastic-web"
|
# repo: "meshtastic/meshtastic-web"
|
||||||
file: "build.tar"
|
# file: "build.tar"
|
||||||
target: "build.tar"
|
# target: "build.tar"
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Unpack web ui
|
# - name: Unpack web ui
|
||||||
run: |
|
# run: |
|
||||||
tar -xf build.tar -C data/static
|
# tar -xf build.tar -C data/static
|
||||||
rm build.tar
|
# rm build.tar
|
||||||
|
|
||||||
- name: Build everything
|
# - name: Build everything
|
||||||
run: bin/build-all.sh
|
# run: bin/build-all.sh
|
||||||
|
|
||||||
- name: Create release
|
# - name: Create release
|
||||||
uses: actions/create-release@v1
|
# uses: actions/create-release@v1
|
||||||
id: create_release
|
# id: create_release
|
||||||
with:
|
# with:
|
||||||
draft: true
|
# draft: true
|
||||||
prerelease: true
|
# prerelease: true
|
||||||
release_name: ${{ steps.version.outputs.version }} alpha
|
# release_name: ${{ steps.version.outputs.version }} alpha
|
||||||
tag_name: v${{ steps.version.outputs.version }}
|
# tag_name: v${{ steps.version.outputs.version }}
|
||||||
body: |
|
# body: |
|
||||||
Autogenerated by github action, developer should edit as required before publishing...
|
# Autogenerated by github action, developer should edit as required before publishing...
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
# GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
- name: Add bins to release
|
# - name: Add bins to release
|
||||||
uses: actions/upload-release-asset@v1
|
# uses: actions/upload-release-asset@v1
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
# GITHUB_TOKEN: ${{ github.token }}
|
||||||
with:
|
# with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: release/archive/firmware-${{ steps.version.outputs.version }}.zip
|
# asset_path: release/archive/firmware-${{ steps.version.outputs.version }}.zip
|
||||||
asset_name: firmware-${{ steps.version.outputs.version }}.zip
|
# asset_name: firmware-${{ steps.version.outputs.version }}.zip
|
||||||
asset_content_type: application/zip
|
# asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Add debug elfs to release
|
# - name: Add debug elfs to release
|
||||||
uses: actions/upload-release-asset@v1
|
# uses: actions/upload-release-asset@v1
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
# GITHUB_TOKEN: ${{ github.token }}
|
||||||
with:
|
# with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: release/archive/elfs-${{ steps.version.outputs.version }}.zip
|
# asset_path: release/archive/elfs-${{ steps.version.outputs.version }}.zip
|
||||||
asset_name: debug-elfs-${{ steps.version.outputs.version }}.zip
|
# asset_name: debug-elfs-${{ steps.version.outputs.version }}.zip
|
||||||
asset_content_type: application/zip
|
# asset_content_type: application/zip
|
||||||
|
Loading…
Reference in New Issue
Block a user