Extracted 0publish, 0capture and 0bootstrap command-line tools into s… #380
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
# Prepare | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
show-progress: false | |
- uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.12.x' | |
- uses: gittools/actions/gitversion/[email protected] | |
id: gitversion | |
# Build | |
- name: Build | |
run: .\build.ps1 ${{steps.gitversion.outputs.nuGetVersion}} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
path: 0publish-gui-dotnet-${{steps.gitversion.outputs.nuGetVersion}}.* | |
# Release | |
- name: Create GitHub Release | |
if: github.ref_type == 'tag' | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
0publish-gui-dotnet-${{steps.gitversion.outputs.legacySemVer}}.xml | |
0publish-gui-dotnet-${{steps.gitversion.outputs.legacySemVer}}.tar.zst | |
body: | | |
**[Documentation and download instructions](https://docs.0install.net/tools/0publish-gui/)** | |
Based on [Zero Install .NET ${{steps.gitversion.outputs.nuGetVersion}}](https://github.com/0install/0install-dotnet/releases/${{steps.gitversion.outputs.nuGetVersion}}). | |
- name: Publish feed | |
if: github.ref_type == 'tag' | |
env: | |
GH_TOKEN: ${{secrets.PERSONAL_TOKEN}} | |
run: > | |
gh workflow run --repo=0install/apps Incoming | |
-f feed_url=https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/0publish-gui-dotnet-${{steps.gitversion.outputs.nuGetVersion}}.xml | |
-f archive_url=https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/0publish-gui-dotnet-${{steps.gitversion.outputs.nuGetVersion}}.tar.zst |