Skip to content

Commit

Permalink
try adding back mac and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Li committed Dec 8, 2023
1 parent 9cde127 commit c2aeeda
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ on:

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
Expand Down Expand Up @@ -35,9 +38,40 @@ jobs:
- name: Upload sentry-client-desktop artifacts
uses: actions/upload-artifact@v2
with:
name: release-sentry-client-desktop-windows-latest
name: release-sentry-client-desktop-${{ matrix.os }}
path: apps/sentry-client-desktop/release

- name: zip cli artifacts
run: |
cd apps/cli/release
zip sentry-node-cli-macos.zip sentry-node-cli-macos
zip sentry-node-cli-linux.zip sentry-node-cli-linux
zip sentry-node-cli-windows.zip sentry-node-cli-win.exe
if: matrix.os == 'ubuntu-latest'

- name: Upload cli artifacts
uses: actions/upload-artifact@v2
with:
name: release-cli-${{ matrix.os }}
path: apps/cli/release

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./apps/web-connect/dist
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
if: matrix.os == 'ubuntu-latest'

sign-and-release:
needs: build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -73,8 +107,16 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
release-sentry-client-desktop-macos-latest/latest-mac.yml
release-sentry-client-desktop-macos-latest/sentry-client-macos.dmg.blockmap
release-sentry-client-desktop-macos-latest/sentry-client-macos.dmg
release-sentry-client-desktop-ubuntu-latest/latest-linux.yml
release-sentry-client-desktop-ubuntu-latest/sentry-client-linux.AppImage
release-sentry-client-desktop-windows-latest/latest.yml
release-sentry-client-desktop-windows-latest/sentry-client-windows.exe.blockmap
release-sentry-client-desktop-windows-latest/signed_builds/sentry-client-windows.exe
release-cli-ubuntu-latest/sentry-node-cli-macos.zip
release-cli-ubuntu-latest/sentry-node-cli-linux.zip
release-cli-ubuntu-latest/sentry-node-cli-windows.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c2aeeda

Please sign in to comment.