Skip to content

Bump version to 0.11.3 #47

Bump version to 0.11.3

Bump version to 0.11.3 #47

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
strategy:
matrix:
include:
- os: macos-latest
server_artifact_name: dist/tales-server.zip
server_asset_name: tales-server-macos-x86_64.zip
desktop_artifact_name: dist/tales-desktop.dmg
desktop_asset_name: tales-desktop-macos-x86_64.dmg
- os: ubuntu-latest
server_artifact_name: dist/tales-server.zip
server_asset_name: tales-server-linux-x86_64.zip
desktop_artifact_name: dist/tales-desktop.AppImage
desktop_asset_name: tales-desktop-linux-x86_64.AppImage
- os: windows-latest
server_artifact_name: dist/tales-server.zip
server_asset_name: tales-server-windows-x86_64.zip
desktop_artifact_name: dist/tales-desktop.exe
desktop_asset_name: tales-desktop-windows-x86_64.exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.14.3'
- name: Cache node modules
uses: actions/cache@v3.3.2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
- run: npm install
- name: Setup keychain
if: matrix.os == 'macos-latest'
run: |
KEYCHAIN_FILE=default.keychain
security create-keychain -p password $KEYCHAIN_FILE
security default-keychain -s $KEYCHAIN_FILE
security unlock-keychain -p password $KEYCHAIN_FILE
security import <(echo $CERTIFICATE_MACOS_APPLICATION | base64 --decode) \
-f pkcs12 \
-k $KEYCHAIN_FILE \
-P "$CERTIFICATE_PASSWORD" \
-T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple: -s -k password $KEYCHAIN_FILE
env:
CERTIFICATE_MACOS_APPLICATION: ${{ secrets.CERTIFICATE_MACOS_APPLICATION }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
- run: make build
- name: Sign binaries
if: matrix.os == 'macos-latest'
run: |
codesign -s 'Developer ID Application: Synyx GmbH & Co. KG' bin/tales-server
codesign -s 'Developer ID Application: Synyx GmbH & Co. KG' bin/tales-migrate
- run: make dist
- name: Upload server binaries to release
uses: svenstaro/upload-release-action@2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.server_artifact_name }}
asset_name: ${{ matrix.server_asset_name }}
tag: ${{ github.ref }}
- name: Upload desktop binaries to release
uses: svenstaro/upload-release-action@2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.desktop_artifact_name }}
asset_name: ${{ matrix.desktop_asset_name }}
tag: ${{ github.ref }}