v1.6.11 #55
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: Publish | |
on: | |
push: | |
tags: ['*'] | |
jobs: | |
publish: | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Cache node_modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json')}} | |
- name: Get tag | |
uses: olegtarasov/[email protected] | |
id: tagName | |
- name: Show version | |
run: echo "Next Version is ${{ steps.tagName.outputs.tag }} (ref_name ${{ github.ref_name }}; ref ${{ github.ref }})" | |
- name: Delete outdated drafts | |
uses: hugo19941994/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Electron App | |
uses: Yan-Jobs/[email protected] | |
id: build-and-release | |
env: | |
MAIN_VITE_APP_VERSION: ${{steps.tagName.outputs.tag}} | |
RENDERER_VITE_APP_VERSION: ${{steps.tagName.outputs.tag}} | |
MAIN_VITE_API: ${{secrets.MAIN_VITE_API}} | |
MAIN_VITE_TOKEN: ${{secrets.MAIN_VITE_TOKEN}} | |
MAIN_VITE_BUGSNAG: ${{secrets.MAIN_VITE_BUGSNAG}} | |
MAIN_VITE_PAT: ${{secrets.MAIN_VITE_PAT}} | |
RENDERER_VITE_BUGSNAG: ${{secrets.RENDERER_VITE_BUGSNAG}} | |
MAIN_VITE_NODE_ENV: production | |
RENDERER_VITE_NODE_ENV: production | |
APPLE_ID: ${{ secrets.APPLEID }} | |
APPLE_ID_PASSWORD: ${{ secrets.APPLEIDPASS }} | |
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLEIDPASS }} | |
TEAM_ID: ${{ secrets.APPLEIDTEAM }} | |
with: | |
max_attempts: 3 | |
github_token: ${{ secrets.github_token }} | |
release: true | |
# signing certificate for Windows | |
# windows_certs: {{ secrets.CERTIFICATE_WINDOWS_APPLICATION }} | |
# windows_certs_password: {{ secrets.CERTIFICATE_WINDOWS_PASSWORD }} | |
# signing certificate for macOS | |
mac_certs: ${{ secrets.CERTIFICATE_OSX_APPLICATION }} | |
mac_certs_password: ${{ secrets.CERTIFICATE_OSX_PASSWORD }} | |
- name: Delete tag for failed release | |
if: steps.build-and-release.outcome == 'failure' | |
run: git push --delete origin v${{ steps.tagName.outputs.tag }}``` |