mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
ci: 规范化step name
This commit is contained in:
2
.github/workflows/gen-changelog.yml
vendored
2
.github/workflows/gen-changelog.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Extract Tag Name
|
||||
- name: Extract tag name
|
||||
id: extract_tag
|
||||
run: |
|
||||
tag_name=$(echo "${{ github.event.pull_request.title }}" | sed -E 's/(Release|release)//' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
|
||||
|
||||
4
.github/workflows/pr-auto-tag.yml
vendored
4
.github/workflows/pr-auto-tag.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
||||
git config user.name "$GITHUB_ACTOR"
|
||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||
|
||||
- name: Extract Tag Name
|
||||
- name: Extract tag name
|
||||
id: extract_tag
|
||||
run: |
|
||||
if ${{ github.event_name != 'workflow_dispatch' }}; then
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
echo "tag_name=${{ inputs.tag }}" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Create Release Tag and push
|
||||
- name: Create release tag and push
|
||||
run: |
|
||||
git tag -a "${{ steps.extract_tag.outputs.tag_name }}" -m "${{ steps.extract_tag.outputs.tag_name }}" -f
|
||||
git push origin "${{ steps.extract_tag.outputs.tag_name }}"
|
||||
|
||||
10
.github/workflows/release-nightly-ota.yml
vendored
10
.github/workflows/release-nightly-ota.yml
vendored
@@ -118,7 +118,7 @@ jobs:
|
||||
needs: build-win-nightly
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Fetch MaaRelease"
|
||||
- name: Fetch MaaRelease
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ${{ format('{0}/{1}', github.repository_owner, 'MaaRelease') }}
|
||||
@@ -150,7 +150,7 @@ jobs:
|
||||
with:
|
||||
name: MAA-win-${{ matrix.target }}
|
||||
path: ${{ format('{0}/{1}', 'build-ota', needs.build-win-nightly.outputs.tag) }}
|
||||
- name: "Fetch release info"
|
||||
- name: Fetch release info
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
@@ -170,7 +170,7 @@ jobs:
|
||||
cat ./config
|
||||
|
||||
echo "release_tag=$(head -n 1 ./config)" >> $GITHUB_ENV
|
||||
- name: "Build OTA"
|
||||
- name: Build OTA
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
@@ -200,7 +200,7 @@ jobs:
|
||||
echo $r
|
||||
echo "full_release_body=$r" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: "Upload to MaaRelease"
|
||||
- name: Upload to MaaRelease
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_name: ${{ format('{0}/{1}', github.repository_owner, 'MaaRelease') }}
|
||||
@@ -212,7 +212,7 @@ jobs:
|
||||
overwrite: true
|
||||
body: ${{ steps.make_release_body.outputs.full_release_body }}
|
||||
|
||||
- name: Deploy the release
|
||||
- name: Setup release mirror
|
||||
run: |
|
||||
gh workflow --repo MaaAssistantArknights/MaaRelease run release-mirrors.yml
|
||||
env:
|
||||
|
||||
12
.github/workflows/release-ota.yml
vendored
12
.github/workflows/release-ota.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
create-tag:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Fetch MaaRelease"
|
||||
- name: Fetch MaaRelease
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ${{ format('{0}/{1}', github.repository_owner, 'MaaRelease') }}
|
||||
@@ -113,9 +113,9 @@ jobs:
|
||||
needs: create-tag
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
- name: Fetch Release Information
|
||||
- name: Fetch release info
|
||||
run: gh release list --repo 'MaaAssistantArknights/MaaAssistantArknights' --limit ${{ inputs.limit || 31 }} | tee ./release_maa.txt
|
||||
- name: Download Release Packages
|
||||
- name: Download release packages
|
||||
run: |
|
||||
cat ./release_maa.txt | awk '{ print $1 }' | while read tag; do
|
||||
gh release download "$tag" --repo 'MaaAssistantArknights/MaaAssistantArknights' --clobber -D packages -p 'MAA-*-macos-universal.dmg' || true
|
||||
@@ -132,7 +132,7 @@ jobs:
|
||||
else
|
||||
echo ${{ secrets.SPARKLE_PRIV_KEY }} | ./bin/generate_appcast --ed-key-file - ./packages
|
||||
fi
|
||||
- name: Clean unneed files
|
||||
- name: Cleanup files
|
||||
run: find ./packages -type f ! \( -name 'MAA-${{ needs.create-tag.outputs.release_tag }}-macos-universal.dmg' -o -name '*.delta' -o -name '*.xml' \) -print -delete
|
||||
- name: Upload to MaaRelease
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
@@ -153,10 +153,10 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.MISTEOWORKFLOW }}
|
||||
steps:
|
||||
- name: Deploy the release
|
||||
- name: Setup release mirror
|
||||
run: |
|
||||
gh workflow --repo MaaAssistantArknights/MaaRelease run release-mirrors.yml
|
||||
- name: Deploy the docs
|
||||
- name: Deploy docs
|
||||
run: |
|
||||
mkdir -p ${{ runner.temp }}/new
|
||||
mkdir -p ${{ runner.temp }}/old
|
||||
|
||||
4
.github/workflows/smoke-testing.yml
vendored
4
.github/workflows/smoke-testing.yml
vendored
@@ -47,11 +47,11 @@ jobs:
|
||||
run: |
|
||||
MSBUILD src/Cpp/MaaSample.slnf /t:rebuild /p:Configuration="Debug" /p:Platform="x64" /m
|
||||
|
||||
- name: Run Testing
|
||||
- name: Run tests
|
||||
run: |
|
||||
.\x64\Debug\Sample.exe
|
||||
|
||||
- name: Upload Logs
|
||||
- name: Upload logs
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user