Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniz committed Aug 20, 2022
1 parent 423f0f9 commit 98d0758
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 4 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Github actions for Daum Workflow
# Copyright (c) 2022 Kyeongwon Lee

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

name: "tagged-release"

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0

- name: Build
run: /bin/sh ./make.sh

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
*.alfredworkflow
2 changes: 2 additions & 0 deletions .github/workflows/test-daum-ac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ name: test-daum-ac

on:
push:
tags:
- "v*"
branches:
- '*'
pull_request:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ alfdaumsearch ![test workflow](https://github.com/kuniz/alfdaumsearch/actions/wo
설치방법
------

- Workflow File 다운로드 및 실행
- https://github.com/Kuniz/alfdaumsearch/raw/master/alfdaumsearch.alfredworkflow
- [releases](../../releases/latest) 페이지의 `alfdaumsearch.alfredworkflow`를 다운로드 받아서 실행한다.

- MacOS 12.3 이상의 경우
- python3 설치 : 예) `brew install python`
- python3 설치
- `brew install python`
- `xcode-select --install`


사용법
Expand Down
Binary file removed alfdaumsearch.alfredworkflow
Binary file not shown.
7 changes: 7 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

rm ./alfdaumsearch.alfredworkflow
cd workflow
sed "s/{{VERSION_INFO}}/${GITHUB_REF##*/v}/g" < info.plist > info.plist.bak
mv info.plist.bak info.plist
zip -r ../alfdaumsearch.alfredworkflow .
2 changes: 1 addition & 1 deletion workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.2.3</string>
<string>{{VERSION_INFO}}</string>
<key>webaddress</key>
<string>https://www.jinukbaek.com/blog/ko/archives/511</string>
</dict>
Expand Down

0 comments on commit 98d0758

Please sign in to comment.