This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
Add deprecation warning to README #25
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 and Release | |
on: [push, workflow_dispatch] | |
jobs: | |
build-and-release: | |
name: Build Alfred GIF Search Workflow | |
runs-on: macos-10.15 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build App and Workflow | |
run: python3 build-scripts/mkworkflow.py | |
- name: Get App Version | |
run: echo "APP_VERSION=$(xcodebuild -project alfred-gif-browser/AlfredGifBrowser.xcodeproj -showBuildSettings | grep MARKETING_VERSION | cut -f2 -d = | tr -d '[:space:]')" >> $GITHUB_ENV | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.APP_VERSION }} | |
release_name: ${{ env.APP_VERSION }} | |
draft: false | |
prerelease: false | |
- name: Get Workflow Filename | |
run: echo "WF_FILENAME=$(ls *.alfredworkflow)" >> $GITHUB_ENV | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./${{ env.WF_FILENAME }} | |
asset_name: ${{ env.WF_FILENAME }} | |
asset_content_type: application/zip |