Skip to content

Commit

Permalink
Add steps to auto update Version for each release
Browse files Browse the repository at this point in the history
  • Loading branch information
skeletonkey committed Oct 30, 2022
1 parent 1d6f354 commit 19fde07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/create_alfredworkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ on:
types: [created]
jobs:
build:
name: Build alfredworkflow archive
runs-on: macos-latest
steps:
- uses: actions/checkout@main
- name: Update Version
run: |
cd $GITHUB_WORKSPACE
NEW_VERSION=`echo ${{ github.ref }} | cut -d '/' -f 3`; sed -i'.bak' "s/{{VERSION}}/$NEW_VERSION/" info.plist
rm info.plist.bak
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ perl linkopener.pl "$query" 2&gt;&amp;1</string>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.0.8</string>
<string>{{VERSION}}</string>
<key>webaddress</key>
<string>https://github.com/skeletonkey/link_opener</string>
</dict>
Expand Down

0 comments on commit 19fde07

Please sign in to comment.