Skip to content

NetBird 0.36.5

NetBird 0.36.5 #59

Workflow file for this run

name: Build and push NetBird package to Chocolatey
on:
workflow_dispatch:
pull_request:
branches:
- main
types:
- closed
permissions:
contents: write
jobs:
pack:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
- name: Choco pack
uses: crazy-max/ghaction-chocolatey@v3
with:
args: pack
- name: Save package file name as env var
run: |
chcp 65001 #set code page to utf-8
echo ("PACKAGE_NAME=" + $(Get-ChildItem *.nupkg -Name)) >> $env:GITHUB_ENV
- name: Choco set API key
uses: crazy-max/ghaction-chocolatey@v3
with:
args: apikey --key "${{ secrets.CHOCOLATEY_API_KEY }}" --source https://push.chocolatey.org/
- name: Choco push package
uses: crazy-max/ghaction-chocolatey@v3
with:
args: push "${{ env.PACKAGE_NAME }}" --source https://push.chocolatey.org/
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.PAT }}
tag_prefix: ''
custom_tag: ${{ steps.branch-name.outputs.current_branch }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}