Skip to content

v8.0.0-preview.15

v8.0.0-preview.15 #102

Workflow file for this run

name: Pack and publish
on:
release:
types:
- published
jobs:
release-nugets:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dotnet8
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
- name: Install deps
run: |
dotnet restore
- name: Build
run: |
dotnet build --configuration Release --no-restore -p:Deterministic=true -p:BuildNumber=${{ github.run_number }}
- name: Pack
run: |
dotnet pack AppLibDotnet.sln --configuration Release --no-restore --no-build -p:BuildNumber=${{ github.run_number }} -p:Deterministic=true
- name: Versions
run: |
dotnet --version
- name: Publish
run: |
dotnet nuget push src/**/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
release-upgrade-tool:
if: startsWith(github.ref, 'refs/tags/altinn-app-cli')
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./cli-tools/altinn-app-cli
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dotnet8
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
- name: Build bundles
run: |
make bundles
- name: Upload files to release
uses: softprops/action-gh-release@v1
with:
files: |
publish/archives/osx-x64.tar.gz
publish/archives/osx-arm64.tar.gz
publish/archives/linux-x64.tar.gz
publish/archives/linux-arm64.tar.gz
publish/archives/win-x64.zip
publish/archives/osx-x64.tar.gz.sha512
publish/archives/osx-arm64.tar.gz.sha512
publish/archives/linux-x64.tar.gz.sha512
publish/archives/linux-arm64.tar.gz.sha512
publish/archives/win-x64.zip.sha512