diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index ebe9eaa25..c18f55bed 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -3,6 +3,10 @@ on: push: tags: - '*' + branches: + - master + workflow_dispatch: + jobs: build: runs-on: macos-14 @@ -30,8 +34,10 @@ jobs: echo 'changelog<> $GITHUB_OUTPUT ./action-changelog.sh >> $GITHUB_OUTPUT echo 'EOF' >> $GITHUB_OUTPUT + if: startsWith(github.ref, 'refs/tags/') - name: Create release + if: startsWith(github.ref, 'refs/tags/') uses: ncipollo/release-action@v1 with: artifacts: "package/*.zip" @@ -39,3 +45,14 @@ jobs: ${{ steps.release_log.outputs.changelog }} draft: true token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create nightly release + if: ${{ github.repository == 'rime/squirrel' && github.ref == 'refs/heads/master' }} + uses: 'marvinpinto/action-automatic-releases@latest' + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + automatic_release_tag: latest + prerelease: true + title: "Nightly build" + files: | + package/*.zip diff --git a/Makefile b/Makefile index 2db5dba29..10c6d1f93 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ librime: $(RIME_DEPS) copy-rime-binaries: cp -L $(RIME_LIB_DIR)/$(RIME_LIBRARY_FILE_NAME) lib/ - cp -R $(RIME_LIB_DIR)/rime-plugins lib/ + cp -pR $(RIME_LIB_DIR)/rime-plugins lib/ cp $(RIME_BIN_DIR)/rime_deployer bin/ cp $(RIME_BIN_DIR)/rime_dict_manager bin/ $(INSTALL_NAME_TOOL) $(INSTALL_NAME_TOOL_ARGS) bin/rime_deployer