Release 1.2.12 #85
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package and Release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
test: | |
name: Lint and Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Lint JS | |
run: pnpm lint:js | |
- name: Lint HBS | |
run: pnpm lint:hbs | |
- name: Get xvfb | |
run: sudo apt-get install xvfb | |
- name: Browser Test | |
run: pnpm test:ember | |
- name: Electron Test | |
run: xvfb-run --auto-servernum pnpm test:electron | |
build: | |
name: Build (${{ matrix.os }}) | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: test | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Add macOS certs | |
if: startsWith(matrix.os, 'macos') && startsWith(github.ref, 'refs/tags/') | |
run: chmod +x add-osx-cert.sh && ./add-osx-cert.sh | |
env: | |
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }} | |
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }} | |
- name: Add Windows certificate | |
if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/') | |
id: write_file | |
uses: timheuer/base64-to-file@v1 | |
with: | |
fileName: 'win-certificate.pfx' | |
encodedString: ${{ secrets.CERTIFICATE_WINDOWS_PFX }} | |
- name: Setup LXD | |
if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/') | |
uses: canonical/[email protected] | |
- name: Install Snapcraft | |
if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/') | |
uses: samuelmeuli/action-snapcraft@v2 | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.snapcraft_token }} | |
- name: Make | |
if: startsWith(github.ref, 'refs/tags/') | |
run: pnpm make --publish | |
env: | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} | |
WINDOWS_PFX_FILE: ${{ steps.write_file.outputs.filePath }} | |
WINDOWS_PFX_PASSWORD: ${{ secrets.WINDOWS_PFX_PASSWORD }} | |
# - name: Make Apple arm64 | |
# if: matrix.os == 'macos-11.0' && startsWith(github.ref, 'refs/tags/') | |
# run: pnpm make --arch=arm64 | |
# env: | |
# APPLE_ID: ${{ secrets.APPLE_ID }} | |
# APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD_ARM }} | |
- name: GitHub release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: | | |
electron-app/out/**/*.deb | |
electron-app/out/**/*.dmg | |
electron-app/out/**/*Setup.exe | |
electron-app/out/**/*.rpm | |
electron-app/out/**/*.zip | |
- name: Create a Sentry.io release | |
uses: tclindner/[email protected] | |
if: matrix.os == 'ubuntu-latest' | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ship-shape-consulting-llc | |
SENTRY_PROJECT: swach | |
with: | |
tagName: ${{ github.ref }} | |
environment: production | |
sourceMapOptions: '{"include": ["electron-app/ember-dist/assets"], "urlPrefix": "~/ember-dist/assets"}' |