Repository navigation
63 lines (53 loc) · 1.51 KB
/
Copy pathrelease.yml
File metadata and controls
63 lines (53 loc) · 1.51 KB
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
name: release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build-macos:
if: vars.MACOS_CI_ENABLED == 'true' || github.event_name == 'workflow_dispatch'
runs-on:
- self-hosted
- macOS
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Build release
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
MACOS_CODESIGN_IDENTITY: ${{ secrets.MACOS_CODESIGN_IDENTITY }}
run: bash ./.github/scripts/release-macos.sh
- name: Upload Jared.app zip
uses: actions/upload-artifact@v7
with:
name: jared-macos
path: Jared-*.zip
if-no-files-found: error
release:
name: Create release and upload artifacts
runs-on: ubuntu-latest
needs: [build-macos]
if: needs.build-macos.result == 'success'
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Download macOS artifact
uses: actions/download-artifact@v7
with:
name: jared-macos
- name: Display structure of downloaded files
run: ls -la
- name: Release
uses: softprops/action-gh-release@v3
with:
draft: true
prerelease: false
fail_on_unmatched_files: false
files: Jared-*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}