This is an automated email from the ASF dual-hosted git repository. sciabarracom pushed a commit to branch 0.9.0-preupdate in repository https://gitbox.apache.org/repos/asf/openserverless-cli.git
commit 33cfc8612f30a5d552c833d6043af96b8d088a2d Author: Michele Sciabarra <[email protected]> AuthorDate: Sat Sep 5 17:07:33 2026 +0200 stash --- .github/workflows/release.yml | 120 ------------------------------------------ 1 file changed, 120 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index c38b61f..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,120 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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: - tags: - - "v*" - branches-ignore: - - "*" - workflow_dispatch: - -permissions: - contents: read - -jobs: - - # Tests and license compliance run before anything is published. - check: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Check Dependencies' License - uses: apache/skywalking-eyes/dependency@main - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - name: Run Tests - run: | - sudo sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin - task install - export PATH="$HOME/.local/bin:$PATH" - ops -version - task tests - - # Cross compile every supported platform and upload one archive each. - # Building is pure `go build`: the version is taken from the embedded - # version.txt, so no linker flags and no external release tooling. - build: - needs: check - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - goos: linux - goarch: amd64 - - goos: linux - goarch: arm64 - - goos: darwin - goarch: arm64 - - goos: windows - goarch: amd64 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - name: Build archive - env: - GOOS: ${{ matrix.goos }} - GOARCH: ${{ matrix.goarch }} - run: ./dist.sh - - name: Upload archive - uses: actions/upload-artifact@v4 - with: - name: dist-${{ matrix.goos }}-${{ matrix.goarch }} - path: dist/ - if-no-files-found: error - retention-days: 1 - - # Collect the per-platform archives, checksum them together and publish. - release: - needs: build - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download archives - uses: actions/download-artifact@v4 - with: - path: dist - pattern: dist-* - merge-multiple: true - - name: Generate checksums - run: | - cd dist - sha256sum *.tar.gz *.zip > "openserverless-cli_$(cat ../version.txt)_checksums.txt" - ls -l - - name: Publish release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAG: ${{ github.ref_name }} - run: | - gh release create "$TAG" \ - --repo "$GITHUB_REPOSITORY" \ - --title "$TAG" \ - --generate-notes \ - dist/*
