From 6dbacb76e90f1c5c6d418fb3bd051cce49edb771 Mon Sep 17 00:00:00 2001 From: Yaguang Tang Date: Mon, 22 Jul 2024 22:14:04 +0800 Subject: [PATCH] Drop release-please for github --- .github/workflows/publish.yml | 52 ----------------------------------- .github/workflows/release.yml | 36 ------------------------ .release-please-manifest.json | 3 -- galaxy.yml | 4 +-- release-please-config.json | 11 -------- 5 files changed, 1 insertion(+), 105 deletions(-) delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 .release-please-manifest.json delete mode 100644 release-please-config.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 587a22f1..00000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright (c) 2023 VEXXHOST, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -name: publish - -on: - release: - types: - - published - -jobs: - ansible-collection: - runs-on: ubuntu-latest - steps: - - name: Checkout project - uses: actions/checkout@v3 - - - name: Build and publish collection - uses: artis3n/ansible_galaxy_collection@v2 - with: - api_key: "${{ secrets.GALAXY_API_KEY }}" - - - name: Get release - uses: bruceadams/get-release@v1.3.2 - id: get_release - env: - GITHUB_TOKEN: ${{ github.token }} - - - name: Get file name for collection - id: get_filename - run: echo ::set-output name=filename::$(ls *.tar.gz) - - - name: Upload release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.get_release.outputs.upload_url }} - asset_path: ./${{ steps.get_filename.outputs.filename }} - asset_name: ${{ steps.get_filename.outputs.filename }} - asset_content_type: application/gzip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index cac2cf6b..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) 2023 VEXXHOST, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -name: release - -on: - push: - branches: - - main - -permissions: - contents: write - pull-requests: write - -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - name: Checkout project - uses: actions/checkout@v3 - - - name: Run "release-please" - uses: google-github-actions/release-please-action@v3 - with: - command: manifest diff --git a/.release-please-manifest.json b/.release-please-manifest.json deleted file mode 100644 index d6f54056..00000000 --- a/.release-please-manifest.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - ".": "3.0.1" -} diff --git a/galaxy.yml b/galaxy.yml index 1bd023de..2bb9fd94 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,6 +1,6 @@ namespace: vexxhost name: ceph -version: 3.0.1 # x-release-please-version +version: 3.0.1 readme: README.md authors: - Mohammed Naser @@ -24,5 +24,3 @@ build_ignore: - .github - molecule - .pre-commit-config.yaml - - .release-please-manifest.json - - release-please-config.json diff --git a/release-please-config.json b/release-please-config.json deleted file mode 100644 index ac4fb3c9..00000000 --- a/release-please-config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "packages": { - ".": { - "release-type": "python", - "draft": true, - "extra-files": [ - "galaxy.yml" - ] - } - } -}