mod: CI format
This commit is contained in:
28
.github/workflows/CI.yml
vendored
28
.github/workflows/CI.yml
vendored
@ -1,16 +1,16 @@
|
|||||||
name: CI
|
name: Pilipala Beta
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- "main"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- "**.md"
|
||||||
- '**.txt'
|
- "**.txt"
|
||||||
- '.github/**'
|
- ".github/**"
|
||||||
- '.idea/**'
|
- ".idea/**"
|
||||||
- '!.github/workflows/**'
|
- "!.github/workflows/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_version:
|
update_version:
|
||||||
@ -189,23 +189,11 @@ jobs:
|
|||||||
- android
|
- android
|
||||||
- iOS
|
- iOS
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Pilipala-CI
|
name: Pilipala-CI
|
||||||
path: ./Pilipala-CI
|
path: ./Pilipala-CI
|
||||||
|
|
||||||
# - name: Upload Pre-release
|
|
||||||
# uses: ncipollo/release-action@v1
|
|
||||||
# with:
|
|
||||||
# name: ${{ needs.update_version.outputs.new_version }}
|
|
||||||
# token: ${{ secrets.GIT_TOKEN }}
|
|
||||||
# commit: main
|
|
||||||
# tag: ${{ needs.update_version.outputs.new_version }}
|
|
||||||
# prerelease: true
|
|
||||||
# allowUpdates: true
|
|
||||||
# artifacts: Pilipala-CI/*
|
|
||||||
|
|
||||||
- name: 发送到Telegram频道
|
- name: 发送到Telegram频道
|
||||||
uses: xireiki/channel-post@v1.0.7
|
uses: xireiki/channel-post@v1.0.7
|
||||||
with:
|
with:
|
||||||
@ -217,4 +205,4 @@ jobs:
|
|||||||
method: sendFile
|
method: sendFile
|
||||||
path: Pilipala-CI/*
|
path: Pilipala-CI/*
|
||||||
parse_mode: Markdown
|
parse_mode: Markdown
|
||||||
context: "*Pre-release: v${{ needs.update_version.outputs.new_version }}*\n${{ needs.update_version.outputs.last_commit }}"
|
context: "*Beta版本: v${{ needs.update_version.outputs.new_version }}*\n更新内容: [${{ needs.update_version.outputs.last_commit }}](${{ github.event.head_commit.url }})"
|
||||||
|
Reference in New Issue
Block a user