name: Publish Release on: push: tags: - 'v*' jobs: publish: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: dotnet-version: | 9.x 10.x - name: Extract version id: ver run: | RAW="${GITHUB_REF_NAME#v}" PARTS=$(echo "$RAW" | tr '.' '\n' | wc -l) if [ "$PARTS" -eq 3 ]; then RAW="${RAW}.0"; fi echo "ver=$RAW" >> $GITHUB_OUTPUT - name: Build net9.0 run: dotnet publish AutoBackup.csproj -c Release -f net9.0 --nologo - name: Build net10.0 run: dotnet publish AutoBackup.csproj -c Release -f net10.0 --nologo - name: Install jprm run: pip install jprm --break-system-packages - name: Package artifacts run: | mkdir -p artifacts VER="${{ steps.ver.outputs.ver }}" TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") write_meta() { local DIR=$1 ABI=$2 cat > "${DIR}/meta.json" <