Skip to content

release(main): Altinn.Urn 1.1.0 (#6) #15

release(main): Altinn.Urn 1.1.0 (#6)

release(main): Altinn.Urn 1.1.0 (#6) #15

Workflow file for this run

on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- id: release
uses: google-github-actions/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Log release output
env:
RELEASE_OUTPUT: ${{ toJSON(steps.release.outputs) }}
run: 'echo "Release output: $RELEASE_OUTPUT"'
outputs:
release_created: ${{ steps.release.outputs.release_created }}
paths_released: ${{ steps.release.outputs.paths_released }}
full: ${{ toJSON(steps.release.outputs) }}
pack:
runs-on: ubuntu-latest
if: needs.release-please.outputs.release_created == 'true'
needs:
- release-please
strategy:
matrix:
path: ${{fromJson(needs.release-please.outputs.paths_released)}}
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Build
working-directory: ${{ matrix.path }}
run: dotnet build -c Release
- name: Test
working-directory: ${{ matrix.path }}
run: dotnet test -c Release --no-build
- name: Pack
working-directory: ${{ matrix.path }}
run: dotnet pack -c Release --no-build
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.path }}
path: artifacts/**/*.nupkg
if-no-files-found: error
- name: Upload packages to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/**/*.nupkg
tag: needs.release-please.outputs.full['${{ matrix.path }}--tag_name']
file_glob: true