Skip to content

Commit

Permalink
build: use new way to build/release (#283) (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-alarcon committed Sep 18, 2023
1 parent 1f37b1f commit 4e3116b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,36 @@ jobs:

- name: Build for test only linux
if: |
github.ref != 'main' &&
github.ref != 'refs/heads/main' &&
startsWith(matrix.os, 'ubuntu')
run: yarn dist:linux:${{ matrix.arch }} -- --publish never

- name: Release linux
if: |
github.ref == 'main' &&
github.ref == 'refs/heads/main' &&
startsWith(matrix.os, 'ubuntu')
run: yarn dist:linux:${{ matrix.arch }} -- --publish always

- name: Build for test only macos
if: |
github.ref != 'main' &&
github.ref != 'refs/heads/main' &&
startsWith(matrix.os, 'macos')
run: yarn dist:mac -- --publish never

- name: Release macos
if: |
github.ref == 'main' &&
github.ref == 'refs/heads/main' &&
startsWith(matrix.os, 'macos')
run: yarn dist:mac -- --publish always

- name: Build for test only windows
if: |
github.ref != 'main' &&
github.ref != 'refs/heads/main' &&
startsWith(matrix.os, 'windows')
run: yarn dist:windows -- --publish never

- name: Release windows
if: |
github.ref == 'main' &&
github.ref == 'refs/heads/main' &&
startsWith(matrix.os, 'windows')
run: yarn dist:windows -- --publish always
9 changes: 5 additions & 4 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:

env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
GH_TOKEN: ${{ SECRETS.GITHUB_TOKEN }}

steps:
- name: Check out Git repository
Expand All @@ -30,11 +31,11 @@ jobs:
uses: samuelmeuli/action-snapcraft@v2

- name: Build for test only
if: github.ref != 'main'
if: github.ref != 'refs/heads/main'
run: yarn dist:linux:snap --publish never

- name: Release
if: github.ref == 'main'
if: github.ref == 'refs/heads/main'
run: yarn dist:linux:snap --publish always

snap-armv7l:
Expand All @@ -59,9 +60,9 @@ jobs:
uses: samuelmeuli/action-snapcraft@v2

- name: Build for test only
if: github.ref != 'main'
if: github.ref != 'refs/heads/main'
run: yarn dist:linux:snap:armv7l --publish never

- name: Release
if: github.ref == 'main'
if: github.ref == 'refs/heads/main'
run: yarn dist:linux:snap:armv7l --publish always

0 comments on commit 4e3116b

Please sign in to comment.