fix: picking first Mac SDK (#57) #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Armaria | |
on: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
jobs: | |
goreleaser: | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v22 | |
- name: Setup Docker | |
run: | | |
brew install docker | |
brew install colima | |
colima start | |
- name: Release | |
run: | | |
export SDK=$(ls -1 "/Library/Developer/CommandLineTools/SDKs/" | head -n 1) | |
task release | |
shell: nix develop --command bash -e {0} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WINGET_AUTH_TOKEN: ${{ secrets.WINGET_AUTH_TOKEN }} | |
TAP_AUTH_TOKEN: ${{ secrets.TAP_AUTH_TOKEN }} | |
NUR_AUTH_TOKEN: ${{ secrets.NUR_AUTH_TOKEN }} | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} | |
SDK: |