-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.23 KB
/
release.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
name: Release
on:
release:
types: [published]
jobs:
macos:
name: Release Tuist Plugin Zip
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Tuist
run: brew install --cask tuist
- name: Generate Tuist Plugin
run: tuist plugin archive
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tuistui
path: TuistUI.tuist-plugin.zip
retention-days: 5
upload:
name: Upload release artifacts
runs-on: ubuntu-latest
needs: [macos]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: downloaded_artifacts
- name: Display structure of downloaded files
run: ls -R downloaded_artifacts
- name: Upload Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: downloaded_artifacts/tuistui/TuistUI.tuist-plugin.zip
asset_name: TuistUI.tuist-plugin.zip
asset_content_type: application/zip