From 7810bb7a445082956956afaf425f2e1326740999 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Sun, 25 Jul 2021 22:00:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4github=20action=EF=BC=8C?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E5=BD=93=E5=89=8D=E6=97=A0=E6=B3=95=E6=BB=A1?= =?UTF-8?q?=E8=B6=B3=E4=B8=8D=E5=90=8C=E5=B9=B3=E5=8F=B0=E7=9A=84=E5=AE=9A?= =?UTF-8?q?=E5=88=B6=E5=8F=91=E5=B8=83=E8=A6=81=E6=B1=82=EF=BC=8C=E8=80=8C?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E8=B5=B7=E6=9D=A5=E6=AF=94shell=E8=A6=81?= =?UTF-8?q?=E7=9B=B8=E5=AF=B9=E9=BA=BB=E7=83=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/labeler.yml | 4 -- .github/release-drafter.yml | 43 ------------------ .github/workflows/labeler.yml | 11 ----- .github/workflows/main.yml | 39 ---------------- .github/workflows/release-drafter.yml | 29 ------------ .github/workflows/release.yml | 65 --------------------------- 6 files changed, 191 deletions(-) delete mode 100644 .github/labeler.yml delete mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/labeler.yml delete mode 100644 .github/workflows/main.yml delete mode 100644 .github/workflows/release-drafter.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 5ebac9e..0000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,4 +0,0 @@ -# Configuration for labeler - https://github.com/actions/labeler - -🛠 Improvement: FastGithub*/**/* -Actions: .github/workflows/**/* diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 5f54305..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,43 +0,0 @@ -name-template: "$RESOLVED_VERSION 🌈" -tag-template: "$RESOLVED_VERSION" -categories: - - title: "💥 Breaking Changes" - label: "💥 Breaking Change" - - - title: "🌟 New Features" - label: "🌟 New Feature" - - - title: "⭐ Features" - label: "⭐ Feature" - - - title: "🐞 Bug Fixes" - label: "🐞 Bug Fix" - - - title: "🛠 Improvements" - label: "🛠 Improvement" - - - title: "🌀 External Changes" - label: "🔌 3rd Party Plugin" - - - title: "📖 Documentation" - label: "📖 Docs" - - - title: "🌍 Localization" - label: "🌍 i18n" -change-template: "- $TITLE @$AUTHOR (#$NUMBER)" -change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. -version-resolver: - major: - labels: - - "major" - minor: - labels: - - "minor" - patch: - labels: - - "patch" - default: patch -template: | - ## Changes - - $CHANGES diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 27719aa..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: "Pull Request Labeler" -on: - - pull_request_target - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v3 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 7682112..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: build - -on: - push: - branches: - - master - - develop - - feature/ci - - feature/ut - - pull_request: - branches: - - master - - develop - -jobs: - build: - runs-on: ubuntu-latest - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: true - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: "6.0.x" - include-prerelease: true - - - name: Install dependencies - run: | - cd . - dotnet restore - - name: build and test - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - run: | - dotnet build . --configuration Release diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index 442f6dc..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Release Drafter - -on: - push: - # branches to consider in the event; optional, defaults to all - branches: - - master - # pull_request event is required only for autolabeler - pull_request: - # Only following types are handled by the action, but one can default to all as well - types: [opened, reopened, synchronize] - -jobs: - update_release_draft: - runs-on: ubuntu-latest - steps: - # (Optional) GitHub Enterprise requires GHE_HOST variable set - #- name: Set GHE_HOST - # run: | - # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV - - # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v5 - # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml - # with: - # config-name: my-config.yml - # disable-autolabeler: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f8e80fd..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Release - -on: - release: - types: [published] - -jobs: - release: - runs-on: ubuntu-latest - strategy: - matrix: - os: [win-x64, linux-x64, osx-x64] - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: true - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Setup .NET 3.0 for gitreleasemanager - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.0.x - - name: Setup .NET 6.0 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: "6.0.x" - include-prerelease: true - - name: Setup .NET 5.0 for Release Manager - uses: actions/setup-dotnet@v1 - with: - dotnet-version: "5.0.x" - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.9 - with: - versionSpec: 5.x - - name: Determine Version - id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.9 - with: - useConfigFile: true - - name: Restore dependencies - run: | - cd $GITHUB_WORKSPACE - dotnet restore - - name: Build - run: | - cd $GITHUB_WORKSPACE - dotnet publish FastGithub -c Release -f net6.0 /p:PublishSingleFile=true -r ${{ matrix.os }} /p:PublishTrimmed=true -p:AssemblyVersion=${{ steps.gitversion.outputs.MajorMinorPatch }} -p:Version=${{ steps.gitversion.outputs.SemVer }} -o ./out/${{ matrix.os }} - mv out/${{ matrix.os }} FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }} - zip -r FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}.zip FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }} - - uses: gittools/actions/gitreleasemanager/setup@v0.9.2 - name: Install GitReleaseManager - with: - versionSpec: "0.11.x" - - - uses: gittools/actions/gitreleasemanager/addasset@v0.9.2 - name: Add asset to a release with GitReleaseManager - with: - token: ${{ secrets.GITHUB_TOKEN }} - owner: "xljiulang" - repository: "FastGithub" - tagName: "${{ steps.gitversion.outputs.MajorMinorPatch }}" - assets: | - FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}.zip