.github/workflows/upload_binaries.yml
10 runs-on : ubuntu-latest
14 - uses : actions/checkout@v4
15 - uses : taiki-e/create-gh-release-action@v1
17 changelog : CHANGELOG.md
19 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25 # See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
27 - target : aarch64-apple-darwin
29 - target : x86_64-apple-darwin
32 runs-on : ${{ matrix.os }}
38 - uses : actions/checkout@v4
40 - name : Compile the Swift script
41 run : swiftc save_safari_webarchive.swift
43 - name : Create the zip archive
44 run : zip "save_safari_webarchive.${{ matrix.target }}.zip" save_safari_webarchive README.md LICENSE
46 - name : Push the zip file to the GitHub release
47 run : gh release upload "$GITHUB_REF_NAME" "save_safari_webarchive.${{ matrix.target }}.zip" --clobber
49 GH_TOKEN : ${{ github.token }}