From 7127d3beb5dd5ee5fdee7e34f3c801e9e067b36d Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Wed, 4 Sep 2024 09:32:38 -0400 Subject: [PATCH] Drop release We were putting releases on GitHub but this doesn't quite work with our current flow as we have extra steps to do after a build. Drop this for now and we can bring it back later if necessary. If we do decide to bring this back, we need to pickup the fix in https://github.com/advisories/GHSA-cxww-7g56-2vh6 --- .github/workflows/release-builds.yml | 42 --------------------------- .github/workflows/release.yml | 43 ---------------------------- 2 files changed, 85 deletions(-) delete mode 100644 .github/workflows/release-builds.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release-builds.yml b/.github/workflows/release-builds.yml deleted file mode 100644 index a65e0a6e5..000000000 --- a/.github/workflows/release-builds.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: release-builds -on: - push: - tags: - - "oxide-rot-1*" - - "gimlet-*" - - "psc-*" - - "sidecar-*" - - "devboards-*" - -jobs: - release-rot: - if: startsWith(github.ref, 'refs/tags/oxide-rot-1') - uses: ./.github/workflows/release.yml - with: - board-set: rot - - release-sidecar: - if: startsWith(github.ref, 'refs/tags/sidecar') - uses: ./.github/workflows/release.yml - with: - board-set: sidecar - - release-gimlet: - if: startsWith(github.ref, 'refs/tags/gimlet') - uses: ./.github/workflows/release.yml - with: - board-set: gimlet - - release-psc: - if: startsWith(github.ref, 'refs/tags/psc') - uses: ./.github/workflows/release.yml - with: - board-set: psc - - release-devboards: - if: startsWith(github.ref, 'refs/tags/devboards') - uses: ./.github/workflows/release.yml - with: - board-set: devboards - - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 3e820b019..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: release -on: - workflow_call: - inputs: - board-set: - description: "Which set to build" - required: true - type: string - -jobs: - do-build: - uses: ./.github/workflows/build-boards.yml - with: - os: ubuntu-latest - board-set: ${{ inputs.board-set }} - - release-build: - needs: do-build - runs-on: ubuntu-latest - steps: - - name: grab binary - id: grab - uses: actions/download-artifact@v3 - with: - path: out - - name: prep - run: | - VERSION=$(cut -d/ -f3- <<< "$GITHUB_REF") - VERSION=`echo $VERSION | awk -F- '{print $NF}'` - OUT=${{ steps.grab.outputs.download-path }} - for build in `ls $OUT`; do - for f in `ls $OUT/$build`; do - mv $OUT/$build/$f $OUT/`basename $f .zip`-$VERSION.zip - done - done - - - name: cut release - uses: softprops/action-gh-release@v1 - with: - name: "${{ inputs.board-set }} release" - fail_on_unmatched_files: true - files: | - ${{ steps.grab.outputs.download-path }}/*.zip