From b45ec15d40607411701c5f6d140203e17dfcf3ed Mon Sep 17 00:00:00 2001 From: wyang Date: Thu, 6 Apr 2023 18:22:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=84=9A=E6=9C=AC=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {.github => .gitea}/CODEOWNERS | 0 .gitea/workflows/build-go-packages.yml | 18 ++++++++++ .../workflows/codeql-analysis.yml | 0 {.github => .gitea}/workflows/create-pr.yml | 0 .../workflows/get-go-versions.yml | 0 .../workflows/validate-manifest.yml | 0 .github/workflows/build-go-packages.yml | 34 ------------------- 7 files changed, 18 insertions(+), 34 deletions(-) rename {.github => .gitea}/CODEOWNERS (100%) create mode 100644 .gitea/workflows/build-go-packages.yml rename {.github => .gitea}/workflows/codeql-analysis.yml (100%) rename {.github => .gitea}/workflows/create-pr.yml (100%) rename {.github => .gitea}/workflows/get-go-versions.yml (100%) rename {.github => .gitea}/workflows/validate-manifest.yml (100%) delete mode 100644 .github/workflows/build-go-packages.yml diff --git a/.github/CODEOWNERS b/.gitea/CODEOWNERS similarity index 100% rename from .github/CODEOWNERS rename to .gitea/CODEOWNERS diff --git a/.gitea/workflows/build-go-packages.yml b/.gitea/workflows/build-go-packages.yml new file mode 100644 index 0000000..6c16c7e --- /dev/null +++ b/.gitea/workflows/build-go-packages.yml @@ -0,0 +1,18 @@ +name: Generate Go package +run-name: Generate Go ${{ inputs.VERSION || '1.19.0' }} +on: + push: + branches: + - 'releases/1.17.4.1' + - 'releases/**' + - main + +jobs: + go: + name: Go + uses: actions/versions-package-tools/.github/workflows/build-tool-packages.yml@main + with: + tool-name: "go" + tool-version: ${{ inputs.VERSION || '1.19.0' }} + publish-release: ${{ inputs.PUBLISH_RELEASES || false }} + secrets: inherit diff --git a/.github/workflows/codeql-analysis.yml b/.gitea/workflows/codeql-analysis.yml similarity index 100% rename from .github/workflows/codeql-analysis.yml rename to .gitea/workflows/codeql-analysis.yml diff --git a/.github/workflows/create-pr.yml b/.gitea/workflows/create-pr.yml similarity index 100% rename from .github/workflows/create-pr.yml rename to .gitea/workflows/create-pr.yml diff --git a/.github/workflows/get-go-versions.yml b/.gitea/workflows/get-go-versions.yml similarity index 100% rename from .github/workflows/get-go-versions.yml rename to .gitea/workflows/get-go-versions.yml diff --git a/.github/workflows/validate-manifest.yml b/.gitea/workflows/validate-manifest.yml similarity index 100% rename from .github/workflows/validate-manifest.yml rename to .gitea/workflows/validate-manifest.yml diff --git a/.github/workflows/build-go-packages.yml b/.github/workflows/build-go-packages.yml deleted file mode 100644 index 01cc145..0000000 --- a/.github/workflows/build-go-packages.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Generate Go package -run-name: Generate Go ${{ inputs.VERSION || '1.19.0' }} -on: - workflow_dispatch: - inputs: - VERSION: - description: 'Go version to build and upload' - required: true - default: '1.19.0' - PUBLISH_RELEASES: - description: 'Whether to publish releases' - type: boolean - required: true - default: false - pull_request: - paths-ignore: - - 'versions-manifest.json' - - 'LICENSE' - - '**.md' - branches: - - 'main' - push: - branches: - - 'releases/**' - -jobs: - go: - name: Go - uses: actions/versions-package-tools/.github/workflows/build-tool-packages.yml@main - with: - tool-name: "go" - tool-version: ${{ inputs.VERSION || '1.19.0' }} - publish-release: ${{ inputs.PUBLISH_RELEASES || false }} - secrets: inherit \ No newline at end of file