fix: update release macos actions
This commit is contained in:
parent
01d0ba9811
commit
2863d7cab7
|
@ -11,8 +11,8 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
# - darwin/amd64
|
# - darwin/amd64
|
||||||
# - darwin/arm64
|
# - darwin/arm64
|
||||||
- darwin/universal
|
- darwin/universal
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
|
@ -23,29 +23,29 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
tag=$(echo ${{ matrix.platform }} | sed -e 's/\//_/g')
|
tag=$(echo ${{ matrix.platform }} | sed -e 's/\//_/g')
|
||||||
echo "tag={$tag}" >> "$GITHUB_OUTPUT"
|
echo "tag=$tag" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Normalise version tag
|
- name: Normalise version tag
|
||||||
id: normalise_version
|
id: normalise_version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
version=$(echo ${{ github.event.release.tag_name }} | sed -e 's/v//g')
|
version=$(echo ${{ github.event.release.tag_name }} | sed -e 's/v//g')
|
||||||
echo "version={$version}" >> "$GITHUB_OUTPUT"
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
|
|
||||||
# - name: Install gon for macOS notarisation
|
# - name: Install gon for macOS notarisation
|
||||||
# shell: bash
|
# shell: bash
|
||||||
# run: wget https://github.com/mitchellh/gon/releases/download/v0.2.5/gon_macos.zip && unzip gon_macos.zip && mv gon /usr/local/bin
|
# run: wget https://github.com/mitchellh/gon/releases/download/v0.2.5/gon_macos.zip && unzip gon_macos.zip && mv gon /usr/local/bin
|
||||||
#
|
#
|
||||||
# - name: Import code signing certificate from Github Secrets
|
# - name: Import code signing certificate from Github Secrets
|
||||||
# uses: Apple-Actions/import-codesign-certs@v1
|
# uses: Apple-Actions/import-codesign-certs@v1
|
||||||
# with:
|
# with:
|
||||||
# p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
|
# p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
|
||||||
# p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
|
# p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
|
||||||
|
|
||||||
- name: Install wails
|
- name: Install wails
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -68,12 +68,12 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: CGO_ENABLED=1 wails build -platform ${{ matrix.platform }} -ldflags "-X main.version=${{ github.event.release.tag_name }}"
|
run: CGO_ENABLED=1 wails build -platform ${{ matrix.platform }} -ldflags "-X main.version=${{ github.event.release.tag_name }}"
|
||||||
|
|
||||||
# - name: Notarise macOS app + create dmg
|
# - name: Notarise macOS app + create dmg
|
||||||
# shell: bash
|
# shell: bash
|
||||||
# run: gon -log-level=info gon.config.json
|
# run: gon -log-level=info gon.config.json
|
||||||
# env:
|
# env:
|
||||||
# AC_USERNAME: ${{ secrets.AC_USERNAME }}
|
# AC_USERNAME: ${{ secrets.AC_USERNAME }}
|
||||||
# AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
|
# AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
|
||||||
|
|
||||||
- name: Compress macOS app
|
- name: Compress macOS app
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -85,7 +85,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases" > /tmp/releases.json
|
curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases" > /tmp/releases.json
|
||||||
url=$(jq -r '.[0].upload_url' /tmp/releases.json)
|
url=$(jq -r '.[0].upload_url' /tmp/releases.json)
|
||||||
echo "url={$url}" >> "$GITHUB_OUTPUT"
|
echo "url=$url" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
|
|
Loading…
Reference in New Issue