mirror of
https://github.com/heyman/heynote.git
synced 2025-02-16 18:21:02 +01:00
Always release on push #build
This commit is contained in:
parent
3387f18e8d
commit
1e69a593e2
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@ -3,9 +3,11 @@ name: Build/release
|
|||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
publish:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
if: ${{ contains(github.event.head_commit.message, '#build') }}
|
if: ${{ contains(github.event.head_commit.message, '#build') }}
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -47,24 +49,10 @@ jobs:
|
|||||||
|
|
||||||
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||||
# release the app after building
|
# release the app after building
|
||||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
release: true
|
||||||
|
#release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
env:
|
env:
|
||||||
# macOS notarization API key
|
# macOS notarization API key
|
||||||
API_KEY_ID: ${{ secrets.apple_api_key_id }}
|
API_KEY_ID: ${{ secrets.apple_api_key_id }}
|
||||||
API_KEY_ISSUER_ID: ${{ secrets.apple_api_key_issuer_id }}
|
API_KEY_ISSUER_ID: ${{ secrets.apple_api_key_issuer_id }}
|
||||||
|
|
||||||
- name: Upload Mac artifact
|
|
||||||
if: ${{ matrix.os == 'macos-latest' }}
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: heynote-macos-${{ github.sha }}
|
|
||||||
path: release/*/Heynote_[0-9].[0-9].[0-9]*.zip
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
- name: Upload Windows artifact
|
|
||||||
if: ${{ matrix.os == 'windows-latest' }}
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: heynote-windows-${{ github.sha }}
|
|
||||||
path: release/*/Heynote_[0-9].[0-9].[0-9]*.exe
|
|
||||||
retention-days: 1
|
|
||||||
|
Loading…
Reference in New Issue
Block a user