-
Notifications
You must be signed in to change notification settings - Fork 172
96 lines (96 loc) · 2.54 KB
/
release-please.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Release
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
outputs:
tag: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
sha: ${{ steps.release.outputs.sha }}
upload_url: ${{ steps.release.outputs.upload_url }}
build-node:
name: "Build Node"
needs: release-please
if: needs.release-please.outputs.release_created
uses: ./.github/workflows/build.yml
secrets: inherit
build-tauri:
name: "Build Tauri"
needs: release-please
if: needs.release-please.outputs.release_created
uses: ./.github/workflows/build-tauri.yml
secrets: inherit
publish:
name: Publish
needs:
- build-node
- build-tauri
- release-please
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
- name: Upload Release Assets
id: upload-release-asset
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.release-please.outputs.tag }}
files: |
built-*/latest*
built-*/*.deb
built-*/*.rpm
built-*/*.dmg
built-*/*.AppImage
built-*/*.zip
built-*/*.exe
built-*/*.snap
built-*/*.blockmap
tauri-release/*
publish-to-homebrew-cask:
name: Publish to Homebrew Cask
needs:
- publish
- release-please
runs-on: macos-latest
continue-on-error: true
steps:
- uses: Homebrew/actions/bump-packages@master
with:
casks: pomatez
token: ${{ secrets.GITHUB_TOKEN }}
website-deploy:
name: "Update Website"
needs:
- release-please
- publish
uses: ./.github/workflows/website-deploy.yml
secrets: inherit
publish-to-winget:
name: Publish to WinGet
needs:
- publish
- release-please
runs-on: windows-latest
continue-on-error: true
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: Zidoro.Pomatez
installers-regex: 'setup\.exe$'
fork-user: SekkieBot
release-tag: ${{ needs.release-please.outputs.tag }}
token: ${{ secrets.PAT }}