From 6e914ad1f1e4943546a9c43f3802043611b06293 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Mon, 18 Mar 2024 17:20:19 +0100 Subject: [PATCH 1/3] ci: update action-gh-release --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6114bf2..dee5d5e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -45,7 +45,7 @@ jobs: path: dist/* - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 1290ff56b2c4c0f9be5909ec33613a548c990486 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Mon, 18 Mar 2024 17:20:44 +0100 Subject: [PATCH 2/3] ci: disable go caching --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dee5d5e..960d19a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,6 +19,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: '>=1.17.0' + cache: false - run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest name: Install dependencies - name: Install node.js dependencies From df951db44fc0fe04d08eb35a2861e3a6caca3e9d Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Mon, 18 Mar 2024 17:21:28 +0100 Subject: [PATCH 3/3] ci: add UI version to filename of ui package --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 960d19a..61f5b40 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,9 +36,10 @@ jobs: - name: Build and zip UI-Plugin run : | cd ./ui + UI_VERSION=$(jq -r .version package.json) npm run build-ci cd dist/apps/tedge-container-plugin-ui - zip -r -q ../../../../dist/tedge-container-plugin-ui.zip * + zip -r -q "../../../../dist/tedge-container-plugin-ui_${UI_VERSION}.zip" * - name: Upload artifacts uses: actions/upload-artifact@v4 with: