From 99828d9b7355111720f3cd99a36c70c44ccaf6a6 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Fri, 16 Apr 2021 14:19:53 +0800 Subject: [PATCH] Don't use caches when making release builds --- .github/workflows/release.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 671d88ce9..e00447ad9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,12 +19,7 @@ jobs: with: python-version: 3.x - - name: Cache python libs - uses: actions/cache@v1 - id: cache-pip # needed in if test - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip + # 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 # We actually want to run this every time @@ -33,13 +28,6 @@ jobs: python -m pip install --upgrade pip pip install -U platformio meshtastic adafruit-nrfutil - - name: Cache platformio - uses: actions/cache@v1 - id: cache-platformio # needed in if test - with: - path: ~/.platformio - key: ${{ runner.os }}-platformio - - name: Upgrade platformio run: | pio upgrade @@ -52,19 +40,21 @@ jobs: - name: Build everything run: bin/build-all.sh - - name: release + - name: Create release uses: actions/create-release@v1 id: create_release with: draft: true prerelease: true - release_name: ${{ steps.version.outputs.version }} - tag_name: ${{ github.ref }} - body: Text to be filled in by human + release_name: ${{ steps.version.outputs.version }} alpha + tag_name: ${{ steps.version.outputs.version }} + # was ${{ github.ref }} + body: | + Autogenerated by github action, developer should edit as required before publishing... env: GITHUB_TOKEN: ${{ github.token }} - - name: upload artifact + - name: Add artifact to release uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ github.token }}