From e3145ce75193cde2a4c7429668e124de96a3739c Mon Sep 17 00:00:00 2001 From: Felix Perfler Date: Tue, 26 Mar 2024 18:27:36 +0100 Subject: [PATCH] added files --- .github/release.yml | 28 ++++++++++++++ .github/workflows/Blender Add-on.yaml | 54 +++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 .github/release.yml create mode 100644 .github/workflows/Blender Add-on.yaml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..19fb447 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,28 @@ +changelog: + exclude: + labels: + - duplicate + - question + - invalid + - wontfix + - "help wanted" + - "good first issue" + - "more info needed" + + categories: + - title: Breaking Changes 🛠 + labels: + - Semver-Major + - breaking-change + - title: New Features 🎉 + labels: + - Semver-Minor + - enhancement + - title: Bug fixes 🐛 + - bug + - title: Documentation 📚 + labels: + - documentation + - title: Other Changes + labels: + - "*" \ No newline at end of file diff --git a/.github/workflows/Blender Add-on.yaml b/.github/workflows/Blender Add-on.yaml new file mode 100644 index 0000000..2fae81f --- /dev/null +++ b/.github/workflows/Blender Add-on.yaml @@ -0,0 +1,54 @@ +name: Make Blender Add-on release + +on: + release: + types: [published] + +jobs: + deploy: + if: startsWith(github.ref, 'refs/tags/bezier-ppm') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: PointCloudCompare + + - name: Get release + id: get_release + uses: bruceadams/get-release@v1.3.2 + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Make zip + run: | + zip -r 'PointCloudCompare.zip' 'PointCloudCompare' + + - name: Upload release asset + uses: actions/upload-release-asset@v1.0.2 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.get_release.outputs.upload_url }} + asset_path: './PointCloudCompare.zip' + asset_name: 'PointCloudCompare.zip' + asset_content_type: 'application/zip' + + - name: Upload release asset 2 + uses: actions/upload-release-asset@v1.0.2 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.get_release.outputs.upload_url }} + asset_path: 'PPM.blend' + asset_name: 'PPM.blend' + asset_content_type: 'application/zip' + + - name: Upload release asset 3 + uses: actions/upload-release-asset@v1.0.2 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.get_release.outputs.upload_url }} + asset_path: "README.md" + asset_name: "Manual-Registration-Guidelines.md" + asset_content_type: 'application/zip'