Skip to content

Commit

Permalink
🎉Release 1.3,修改Android CI Release编译链问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Hny0305Lin committed Jul 8, 2024
1 parent 20822ec commit d16b61c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/androidsign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,28 +95,34 @@ jobs:
exit 1
fi
- name: Check and Delete Existing Tag
run: |
if git rev-parse ${{ github.ref_name }} >/dev/null 2>&1; then
git tag -d ${{ github.ref_name }}
git push --delete origin ${{ github.ref_name }}
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump version and generate changelog
id: version
run: |
cd NLChat
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git fetch origin
git branch -a # 列出所有分支,调试信息
git checkout ${{ github.ref_name }} || git checkout -b ${{ github.ref_name }} origin/${{ github.ref_name }}
npx standard-version --release-as minor
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git push --follow-tags origin ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true

- name: Get Commit Message
id: get_commit_message
run: |
cd NLChat
echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)" >> $GITHUB_ENV
continue-on-error: true
- name: Create or Update Release Notes
uses: softprops/action-gh-release@v1
Expand All @@ -128,15 +134,13 @@ jobs:
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # 使用环境变量
continue-on-error: true

- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "NLChat_${{ github.ref_name }}.apk"
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # 使用 PAT
generateReleaseNotes: true
continue-on-error: true

multi-platform-test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d16b61c

Please sign in to comment.