Skip to main content

.github/workflows/upload_binaries.yml

1name: Upload binaries
3on:
4 push:
5 tags:
6 - v[0-9]+.*
8jobs:
9 create-release:
10 runs-on: ubuntu-latest
11 permissions:
12 contents: write
13 steps:
14 - uses: actions/checkout@v6
15 - uses: taiki-e/create-gh-release-action@v1
16 with:
17 changelog: CHANGELOG.md
18 env:
19 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 upload-assets:
22 strategy:
23 matrix:
24 include:
25 - target: aarch64-apple-darwin
26 os: macos-latest
27 - target: x86_64-apple-darwin
28 os: macos-latest
30 runs-on: ${{ matrix.os }}
32 permissions:
33 contents: write
35 steps:
36 - uses: actions/checkout@v6
38 - name: Compile the Swift script
39 run: swiftc get_live_text.swift
41 - name: Create the zip archive
42 run: zip "get_live_text.${{ matrix.target }}.zip" get_live_text README.md LICENSE
44 - name: Push the zip file to the GitHub release
45 run: gh release upload "$GITHUB_REF_NAME" "get_live_text.${{ matrix.target }}.zip" --clobber
46 env:
47 GH_TOKEN: ${{ github.token }}