Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Github Action to release winget package #1618

Merged
merged 4 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/winget-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Submit Winget Package to Windows Package Manager Community Repository
on:
release:
types: [released]
workflow_dispatch:
mwestphal marked this conversation as resolved.
Show resolved Hide resolved
inputs:
tag_name:
description: "Specific tag name"
mwestphal marked this conversation as resolved.
Show resolved Hide resolved
required: true
type: string
jobs:
winget-publish:
name: Publish winget package
runs-on: ubuntu-latest
steps:
- name: Set winget version env
env:
TAG_NAME: ${{ inputs.tag_name || github.event.release.tag_name }}
run: echo "WINGET_TAG_NAME=$(echo ${TAG_NAME#v})" >> $GITHUB_ENV
mwestphal marked this conversation as resolved.
Show resolved Hide resolved
- name: Submit package to Windows Package Manager Community Repository
uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: f3d-app.f3d
installers-regex: '^F3D-[\d\.]+-Windows-x86_64\.exe$'
version: ${{ env.WINGET_TAG_NAME }}
release-tag: ${{ inputs.tag_name || github.event.release.tag_name }}
token: ${{ secrets.WINGET_ACC_TOKEN }}
mwestphal marked this conversation as resolved.
Show resolved Hide resolved