Build Dart binaries & package Alfred Workflow #14
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: Build Dart binaries & package Alfred Workflow | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- name: Show the architecture | |
run: uname -m | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/[email protected] | |
- name: Install dependencies | |
run: dart pub get | |
- name: Compile the app | |
run: ./r.sh build | |
- name: Capture the artifact name | |
run: | | |
artifact_name=`ls *.alfredworkflow | tr -d '\n'` | |
echo "artifact_name=$artifact_name" >> $GITHUB_ENV | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.artifact_name }} | |
path: ${{ env.artifact_name }} |