2022-01-03 15:15:59 +01:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release-linux:
|
|
|
|
name: Release for Linux
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-11-26 09:56:19 +01:00
|
|
|
node-version: '18'
|
2022-01-03 15:15:59 +01:00
|
|
|
cache: yarn
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
make clean
|
|
|
|
make build
|
|
|
|
- name: Package
|
|
|
|
env:
|
2022-01-03 17:51:40 +01:00
|
|
|
VERSION: ${{ github.event.release.name }}
|
2022-01-03 15:15:59 +01:00
|
|
|
run: |
|
|
|
|
make -e linux
|
2022-01-04 03:22:23 +01:00
|
|
|
- uses: snapcore/action-publish@v1
|
|
|
|
with:
|
|
|
|
store_login: ${{ secrets.STORE_LOGIN }}
|
|
|
|
snap: "build/Whalebird-${{ github.event.release.name }}-linux-amd64.snap"
|
|
|
|
release: beta
|
2022-01-03 17:51:40 +01:00
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.tar.bz2"
|
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.AppImage"
|
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.deb"
|
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.rpm"
|
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.shasum"
|
2022-01-03 15:15:59 +01:00
|
|
|
|
|
|
|
release-windows:
|
|
|
|
name: Release for Windows
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-11-26 09:56:19 +01:00
|
|
|
node-version: '18'
|
2022-01-03 15:15:59 +01:00
|
|
|
cache: yarn
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
make clean
|
|
|
|
make build
|
|
|
|
- name: Package
|
|
|
|
env:
|
2022-01-03 17:51:40 +01:00
|
|
|
VERSION: ${{ github.event.release.name }}
|
2022-01-03 15:15:59 +01:00
|
|
|
run: |
|
|
|
|
make -e win32
|
|
|
|
make -e win64
|
2022-01-03 17:51:40 +01:00
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.exe"
|
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.shasum"
|
2022-11-10 12:33:08 +01:00
|
|
|
- name: Release to WinGet
|
|
|
|
uses: vedantmgoyal2009/winget-releaser@v1
|
|
|
|
with:
|
|
|
|
identifier: h3poteto.whalebird-desktop
|
|
|
|
version: ${{ github.event.release.tag_name }}
|
|
|
|
token: ${{ secrets.WINGET_TOKEN }}
|
2022-01-03 15:15:59 +01:00
|
|
|
|
|
|
|
release-darwin:
|
|
|
|
name: Release for MacOS
|
|
|
|
|
|
|
|
runs-on: macos-11
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-11-26 09:56:19 +01:00
|
|
|
node-version: '18'
|
2022-01-03 15:15:59 +01:00
|
|
|
cache: yarn
|
|
|
|
- name: Apple Codesigning
|
|
|
|
uses: apple-actions/import-codesign-certs@v1
|
|
|
|
with:
|
|
|
|
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
|
|
|
|
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
make clean
|
|
|
|
make build
|
|
|
|
- name: Package
|
|
|
|
env:
|
2022-01-03 17:51:40 +01:00
|
|
|
VERSION: ${{ github.event.release.name }}
|
2022-01-03 15:15:59 +01:00
|
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
|
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
|
|
ASC_PROVIDER: ${{ secrets.ASC_PROVIDER }}
|
|
|
|
TEAM_ID: ${{ secrets.ASC_PROVIDER }}
|
|
|
|
run: |
|
|
|
|
make -e mac
|
2022-01-03 17:51:40 +01:00
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.dmg"
|
|
|
|
- uses: shogo82148/actions-upload-release-asset@v1
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: "build/Whalebird-*.shasum"
|