name: Publish on: release: types: [published] permissions: contents: read jobs: winget: runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v8 with: merge-multiple: true - name: Publish to Winget uses: vedantmgoyal9/winget-releaser@main with: identifier: sxyazi.yazi installers-regex: 'yazi-(x86_64|aarch64)-pc-windows-msvc\.zip$' token: ${{ secrets.WINGET_TOKEN }} snapcraft: runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v8 with: merge-multiple: true - name: Promote snap to stable env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} run: | sudo snap install --classic snapcraft snapcraft promote yazi --from-channel latest/candidate --to-channel latest/stable --yes