Skip to content

Commit

Permalink
👷 Move winget release to slsa
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenWaygate committed Jun 2, 2024
1 parent b539c8c commit e105251
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/go-ossf-slsa3-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ jobs:
with:
go-version-file: './go.mod'
- run: go test -v ./...
get-bot-token:
runs-on: ubuntu-latest
steps:
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.BOT_APP_ID }}
application_private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
organization: eat-pray-ai
# Generate ldflags dynamically.
# Optional: only needed for ldflags.
args:
Expand Down Expand Up @@ -91,6 +101,8 @@ jobs:
- darwin-arm64
- windows-amd64.exe
- windows-arm64.exe
env:
a: "b"
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand All @@ -100,3 +112,15 @@ jobs:
uses: actions/attest-build-provenance@v1
with:
subject-path: '${{ github.workspace }}/yutu-${{ matrix.artifact }}'

winget-release:
needs: [build]
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: eat-pray-ai.yutu
installers-regex: '\.exe$' # Only .exe files
version: ${{ github.event.release.tag_name }}
token: ${{ secrets.RELEASE_PAT }}
14 changes: 0 additions & 14 deletions .github/workflows/winget-release.yml

This file was deleted.

0 comments on commit e105251

Please # to comment.