From 66c7fd7012fb0d3baf1766dc3548dcb8865f749b Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Thu, 10 Oct 2024 18:15:45 -0300 Subject: [PATCH] test that changes everything on version --- .github/workflows/ci.yml | 27 ++++++++++----------------- package.json | 2 +- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62eda2ceb..88a1a7a0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,37 +107,30 @@ jobs: - name: Bun deploy (arm) if: matrix.os == 'ubuntu-24-arm' run: | - SNAPCRAFT_BUILD_ENVIRONMENT="host" bun deploy:electron + SNAPCRAFT_BUILD_ENVIRONMENT="host" bun deploy:electron -c.extraMetadata.version=$(git describe --tags --abbrev=0) - - name: Bun deploy (others) - if: matrix.os != 'ubuntu-24-arm' + - name: Bun deploy (windows) + if: matrix.os == 'windows-latest' run: | bun deploy:electron - - name: Build artifact name - if: "!startsWith(github.ref, 'refs/tags/') && success()" - run: | - mv dist/Cockpit*.${{ matrix.extension }} dist/Cockpit-${{ matrix.suffix }}-$(git describe --tags).${{ matrix.extension }} - mv dist/latest*.yml dist/latest-${{ matrix.suffix }}.yml 2>/dev/null || true - - - name: Build tag name - if: startsWith(github.ref, 'refs/tags/') && success() + - name: Bun deploy (others) + if: matrix.os != 'ubuntu-24-arm' && matrix.os != 'windows-latest' run: | - mv dist/Cockpit*.${{ matrix.extension }} dist/Cockpit-${{ matrix.suffix }}-$(git describe --tags --abbrev=0).${{ matrix.extension }} - mv dist/latest*.yml dist/latest-${{ matrix.suffix }}.yml 2>/dev/null || true + bun deploy:electron -c.extraMetadata.version=$(git describe --tags --abbrev=0) - name: Upload binary artifact uses: actions/upload-artifact@v3 with: name: cockpit-${{ matrix.suffix }} - path: dist/Cockpit-${{ matrix.suffix }}-*.${{ matrix.extension }} + path: dist/Cockpit-*.${{ matrix.extension }} if-no-files-found: error - name: Upload latest metadata artifact uses: actions/upload-artifact@v3 with: - name: cockpit-${{ matrix.suffix }} - path: dist/latest-${{ matrix.suffix }}.yml + name: cockpit-latest-metadata-${{ matrix.suffix }} + path: dist/latest-*.yml if-no-files-found: error - name: Upload binary artifact @@ -156,7 +149,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') && success() with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: dist/latest-${{ matrix.suffix }}.yml + file: dist/latest-*.yml tag: ${{ github.ref }} overwrite: true prerelease: true diff --git a/package.json b/package.json index b447354e9..f18f5448a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cockpit", - "version": "1.2.1", + "version": "0.0.0", "private": true, "main": "dist/electron/main.js", "description": "An intuitive and customizable cross-platform ground control station for remote vehicles of all types.",