Skip to content

Commit

Permalink
debug-done
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Apr 12, 2021
1 parent e16eb77 commit 377ff04
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 34 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,30 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
enable_jekyll: true
chocolatey-publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
# 打包 校验
- run: choco install zip checksum
# - uses: actions/cache@v1
# id: env_cache
# with:
# path: # TODO
# key: ${{ runner.os }}-# TODO
# 这个 step 需要干净的环境所以不要在本地运行。
- run: |
zip -r CapsLockX.zip Core Data docs Modules Tools CapsLockX*.ahk LICENSE *.md "启动 CapsLockX.lnk"
checksum -t sha256 -f CapsLockX.zip > CapsLockX.sha256
cp -force LICENSE tools/choco/tools/LICENSE.txt
mv -force CapsLockX.zip tools/choco/tools/
mv -force CapsLockX.sha256 tools/choco/tools/
choco pack Tools/choco/CapsLockX.nuspec
# 测试
- run: |
cinst CapsLockX -s .
# 发布
- run: |
choco apikey --key ${{ secrets.CHOCOLATEY_APIKEY }} --source https://push.chocolatey.org/
- run: |
choco push --source https://push.chocolatey.org/
34 changes: 0 additions & 34 deletions .github/workflows/workflow-debug.yml

This file was deleted.

0 comments on commit 377ff04

Please sign in to comment.