mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-09 15:36:26 +01:00
Change release trigger to tag push
This commit is contained in:
parent
02c2e84fe6
commit
8f39ba99b5
117
.github/workflows/release.yml
vendored
117
.github/workflows/release.yml
vendored
@ -1,14 +1,14 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-linux:
|
release-linux:
|
||||||
name: Release for Linux
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 40
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -21,42 +21,28 @@ jobs:
|
|||||||
make install
|
make install
|
||||||
make clean
|
make clean
|
||||||
make build
|
make build
|
||||||
- name: Package
|
|
||||||
env:
|
- name: Install Snapcraft
|
||||||
VERSION: ${{ github.event.release.name }}
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
run: |
|
|
||||||
make -e linux
|
|
||||||
- uses: snapcore/action-publish@v1
|
|
||||||
env:
|
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
|
||||||
with:
|
with:
|
||||||
snap: "build/Whalebird-${{ github.event.release.name }}-linux-amd64.snap"
|
# Log in to Snap Store
|
||||||
release: beta
|
snapcraft_token: ${{ secrets.STORE_LOGIN }}
|
||||||
- uses: shogo82148/actions-upload-release-asset@v1
|
|
||||||
|
- name: Release
|
||||||
|
uses: samuelmeuli/action-electron-builder@v1
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
skip_build: true
|
||||||
asset_path: "build/Whalebird-*.tar.bz2"
|
# GitHub token, automatically provided to the action
|
||||||
- uses: shogo82148/actions-upload-release-asset@v1
|
# (No need to define this secret in the repo settings)
|
||||||
with:
|
github_token: ${{ secrets.github_token }}
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: "build/Whalebird-*.AppImage"
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||||
- uses: shogo82148/actions-upload-release-asset@v1
|
# release the app after building
|
||||||
with:
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
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"
|
|
||||||
|
|
||||||
release-windows:
|
release-windows:
|
||||||
name: Release for Windows
|
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 40
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -69,32 +55,23 @@ jobs:
|
|||||||
make install
|
make install
|
||||||
make clean
|
make clean
|
||||||
make build
|
make build
|
||||||
- name: Package
|
|
||||||
env:
|
|
||||||
VERSION: ${{ github.event.release.name }}
|
|
||||||
run: |
|
|
||||||
make -e win32
|
|
||||||
make -e win64
|
|
||||||
- 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"
|
|
||||||
- name: Release to WinGet
|
|
||||||
uses: vedantmgoyal2009/winget-releaser@v2
|
|
||||||
if: github.event_name == 'release' && github.event.release.prerelease == false
|
|
||||||
with:
|
|
||||||
identifier: h3poteto.whalebird-desktop
|
|
||||||
version: ${{ github.event.release.tag_name }}
|
|
||||||
token: ${{ secrets.WINGET_TOKEN }}
|
|
||||||
|
|
||||||
release-darwin:
|
- name: Release
|
||||||
name: Release for MacOS
|
uses: samuelmeuli/action-electron-builder@v1
|
||||||
|
with:
|
||||||
|
skip_build: true
|
||||||
|
# GitHub token, automatically provided to the action
|
||||||
|
# (No need to define this secret in the repo settings)
|
||||||
|
github_token: ${{ secrets.github_token }}
|
||||||
|
|
||||||
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||||
|
# release the app after building
|
||||||
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
|
||||||
|
|
||||||
|
release-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
timeout-minutes: 40
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -102,30 +79,32 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '18'
|
||||||
cache: yarn
|
cache: yarn
|
||||||
|
|
||||||
- name: Apple Codesigning
|
- name: Apple Codesigning
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
uses: apple-actions/import-codesign-certs@v1
|
||||||
with:
|
with:
|
||||||
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
|
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
|
||||||
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
|
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make install
|
make install
|
||||||
make clean
|
make clean
|
||||||
make build
|
make build
|
||||||
- name: Package
|
|
||||||
|
- name: Release
|
||||||
|
uses: samuelmeuli/action-electron-builder@v1
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.event.release.name }}
|
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
ASC_PROVIDER: ${{ secrets.ASC_PROVIDER }}
|
ASC_PROVIDER: ${{ secrets.ASC_PROVIDER }}
|
||||||
TEAM_ID: ${{ secrets.ASC_PROVIDER }}
|
TEAM_ID: ${{ secrets.ASC_PROVIDER }}
|
||||||
run: |
|
|
||||||
make -e mac
|
|
||||||
- uses: shogo82148/actions-upload-release-asset@v1
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
skip_build: true
|
||||||
asset_path: "build/Whalebird-*.dmg"
|
# GitHub token, automatically provided to the action
|
||||||
- uses: shogo82148/actions-upload-release-asset@v1
|
# (No need to define this secret in the repo settings)
|
||||||
with:
|
github_token: ${{ secrets.github_token }}
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: "build/Whalebird-*.shasum"
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||||
|
# release the app after building
|
||||||
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
Loading…
Reference in New Issue
Block a user