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 10, 2024
1 parent 475ed18 commit 66c7fd7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit 66c7fd7

Please sign in to comment.