Skip to content

Commit

Permalink
test that changes everything on version
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Oct 11, 2024
1 parent 475ed18 commit dbe86f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,40 +107,26 @@ jobs:
- name: Bun deploy (arm)
if: matrix.os == 'ubuntu-24-arm'
run: |
SNAPCRAFT_BUILD_ENVIRONMENT="host" bun deploy:electron
SNAPCRAFT_BUILD_ENVIRONMENT="host" bun run deploy:electron
- name: Bun deploy (others)
if: matrix.os != 'ubuntu-24-arm'
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()
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 run deploy:electron
- 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
path: dist/latest*.yml
if-no-files-found: error

- name: Upload binary artifact
- name: Upload binary release
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/') && success()
with:
Expand All @@ -151,12 +137,12 @@ jobs:
prerelease: true
file_glob: true

- name: Upload latest metadata artifact
- name: Upload latest metadata release
uses: svenstaro/upload-release-action@v2
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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand All @@ -9,7 +9,7 @@
"build:serve": "bun run build && bun run serve",
"coverage": "vitest --coverage",
"deploy:electron:dir": "electron-builder --dir",
"deploy:electron": "electron-builder --publish=never",
"deploy:electron": "electron-builder --publish=never -c.extraMetadata.version=$(git describe --tags --abbrev=0)",
"deploy:flatpak": "electron-builder --x64 --linux flatpak",
"dev": "vite --host",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore --max-warnings=0",
Expand Down

0 comments on commit dbe86f3

Please sign in to comment.