From bda2106d1f17ff35433397c473a24aefc850782f Mon Sep 17 00:00:00 2001 From: Hirokuni Kitahara Date: Wed, 16 Nov 2022 00:07:30 +0900 Subject: [PATCH] fix github action (#100) Signed-off-by: Hirokuni-Kitahara1 Signed-off-by: Hirokuni-Kitahara1 --- .github/workflows/release.yaml | 36 --------------------------- .github/workflows/slsa-goreleaser.yml | 6 ++--- 2 files changed, 3 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index a9abe69..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,36 +0,0 @@ -on: - push: - tags: - # available only for tags like `v1.2.3` or `v1.2.3-rc1` - - "v[0-9]+.[0-9]+.[0-9]+" - - "v[0-9]+.[0-9]+.[0-9]+-*" - -name: Release Draft -permissions: - contents: write - -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.18 - - name: Install GoReleaser - uses: goreleaser/goreleaser-action@v2 - with: - install-only: true - - name: Create a Release Draft - run: make release - env: - # this token is requried to create a release in the repository - # For more detail, refer to https://docs.github.com/en/actions/reference/authentication-in-a-workflow - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check Binary - run: | - ./dist/kubectl-sigstore-linux-amd64 version \ No newline at end of file diff --git a/.github/workflows/slsa-goreleaser.yml b/.github/workflows/slsa-goreleaser.yml index 65efeaa..77c04a1 100644 --- a/.github/workflows/slsa-goreleaser.yml +++ b/.github/workflows/slsa-goreleaser.yml @@ -37,7 +37,7 @@ jobs: contents: write # To upload assets to release. actions: read # To read the workflow path. needs: args - uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.1 + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.2 with: config-file: .slsa-goreleaser-linux-amd64.yml go-version: 1.18 @@ -49,7 +49,7 @@ jobs: contents: write # To upload assets to release. actions: read # To read the workflow path. needs: args - uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.1 + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.2 with: config-file: .slsa-goreleaser-darwin-amd64.yml go-version: 1.18 @@ -61,7 +61,7 @@ jobs: contents: write # To upload assets to release. actions: read # To read the workflow path. needs: args - uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.1 + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.2 with: config-file: .slsa-goreleaser-windows-amd64.yml go-version: 1.18