Skip to content

Release SDK

Release SDK #2

Workflow file for this run

name: Release SDK
on:
workflow_dispatch:
branches:
- devel
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Ensure PowerShell config directory exists
- name: Ensure PowerShell config directory exists
run: mkdir -p /home/runner/.config/powershell
shell: bash
# Create the service account file from the secret
- name: Create Service Account File
run: |
echo '${{ secrets.RSC_SERVICE_ACCOUNT_JSON }}' > ${{ github.workspace }}/service_account.json
shell: bash
# Install PowerShell
- name: Install PowerShell
run: |
# Update the list of products
sudo apt-get update
# Install a basic PowerShell environment
sudo apt-get install -y powershell
# Setup .NET
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
# Check what is currently the latest release
- name: Check Published Release
run: pwsh -NoProfile -NonInteractive -File Utils/admin/Test-RscSdkRelease.ps1
# Check if the current branch is correctly put together
- name: Check Release candidate
run: pwsh -NoProfile -NonInteractive -File Utils/admin/Test-RscSdkCandidate.ps1
# Dry run the release
- name: Dry run release
env:
RSC_SERVICE_ACCOUNT_FILE: ${{ github.workspace }}/service_account.json
run: pwsh -NoProfile -NonInteractive -File Utils/admin/New-RscSdkRelease.ps1
# Release
- name: Release
env:
RSC_SERVICE_ACCOUNT_FILE: ${{ github.workspace }}/service_account.json
run: pwsh -NoProfile -NonInteractive -File Utils/admin/New-RscSdkRelease.ps1 -NotDry