Skip to content

build (ci): update version to 0.4.16 #1213

build (ci): update version to 0.4.16

build (ci): update version to 0.4.16 #1213

Workflow file for this run

name: build-pr
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches-ignore:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
configuration: [Debug, Release]
framework: [net8.0]
steps:
- uses: kagekirin/gha-utils/.github/actions/git-checkout-tags@main
- uses: kagekirin/gha-dotnet/.github/actions/nuget-add-registry@main
with:
name: github-nuget
token: ${{ secrets.GH_NUGET_TOKEN }}
- uses: ./.github/jobactions/build
with:
configuration: ${{ matrix.configuration }}
framework: ${{ matrix.framework }}
test-tag:
runs-on: ubuntu-latest
needs: build
steps:
- uses: kagekirin/gha-utils/.github/actions/git-checkout-tags@main
with:
ssh-key: "${{secrets.DEPLOY_KEY}}"
- id: create-tag
uses: ./.github/jobactions/tag
- shell: pwsh
run: |-
echo "new version: ${{ steps.create-tag.outputs.version }}"
- if: ${{ ! endsWith(github.ref_name, 'merge') }}
uses: kagekirin/gha-utils/.github/actions/git-push-tag@main
with:
remote: origin
branch: ${{ github.head_ref || github.ref_name }}
dry-run: true
test-nuget:
runs-on: ubuntu-latest
strategy:
matrix:
source: [nuget, github]
include:
- source: nuget
registry: https://api.nuget.org/v3/index.json
username: KageKirin
token: NUGET_ORG_TOKEN
- source: github
registry: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
username: ${{ github.repository_owner }}
token: GH_NUGET_TOKEN
needs: build
steps:
- uses: kagekirin/gha-utils/.github/actions/git-checkout-tags@main
- uses: ./.github/jobactions/nuget-prepare-publish
with:
name: ${{ matrix.source }}
registry: ${{ matrix.registry }}
username: ${{ matrix.username }}
token: ${{ secrets[matrix.token] }}
test-update-dependencies:
runs-on: ubuntu-latest
needs: build
steps:
- uses: kagekirin/gha-utils/.github/actions/git-checkout-tags@main
with:
ssh-key: "${{ secrets.DEPLOY_KEY }}"
- id: update-dependencies
uses: ./.github/jobactions/update-dependencies
- id: push-updates
shell: pwsh
run: git push --dry-run -u origin ${{ steps.update-dependencies.outputs.branch }}
test-install:
runs-on: ubuntu-latest
needs: build
steps:
- uses: kagekirin/gha-utils/.github/actions/git-checkout-tags@main
- uses: ./.github/actions/install
with:
accept-license: YES
- id: display-help
shell: pwsh
run: dotnet nugettier --help