From e0a145e2743d20640dae98dbde0ecbb0e5e01490 Mon Sep 17 00:00:00 2001 From: SherkeyXD <253294679@qq.com> Date: Wed, 19 Jul 2023 00:37:52 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=A7=84=E8=8C=83=E5=8C=96step=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gen-changelog.yml | 2 +- .github/workflows/pr-auto-tag.yml | 4 ++-- .github/workflows/release-nightly-ota.yml | 10 +++++----- .github/workflows/release-ota.yml | 12 ++++++------ .github/workflows/smoke-testing.yml | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/gen-changelog.yml b/.github/workflows/gen-changelog.yml index b17a2d27e3..cbef246044 100644 --- a/.github/workflows/gen-changelog.yml +++ b/.github/workflows/gen-changelog.yml @@ -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:]]*$//') diff --git a/.github/workflows/pr-auto-tag.yml b/.github/workflows/pr-auto-tag.yml index 5241ec17a3..f8bd992090 100644 --- a/.github/workflows/pr-auto-tag.yml +++ b/.github/workflows/pr-auto-tag.yml @@ -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 }}" diff --git a/.github/workflows/release-nightly-ota.yml b/.github/workflows/release-nightly-ota.yml index d8e73c9ba2..2ea45635f7 100644 --- a/.github/workflows/release-nightly-ota.yml +++ b/.github/workflows/release-nightly-ota.yml @@ -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: diff --git a/.github/workflows/release-ota.yml b/.github/workflows/release-ota.yml index ac58ec7337..429958434d 100644 --- a/.github/workflows/release-ota.yml +++ b/.github/workflows/release-ota.yml @@ -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 diff --git a/.github/workflows/smoke-testing.yml b/.github/workflows/smoke-testing.yml index e27971d8c9..366bdb5c0b 100644 --- a/.github/workflows/smoke-testing.yml +++ b/.github/workflows/smoke-testing.yml @@ -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: