Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active February 25, 2024 21:30
Show Gist options
  • Select an option

  • Save unitycoder/6d60e1af8ec4502cf4c243f8f5026e04 to your computer and use it in GitHub Desktop.

Select an option

Save unitycoder/6d60e1af8ec4502cf4c243f8f5026e04 to your computer and use it in GitHub Desktop.
github actions workflow notes

Add timestamp as release title

- name: Get current date and time
  id: datetime
  run: echo "::set-output name=current_datetime::$(date +'%d/%m/%Y %H:%M')"

- name: Create Release
  id: create_release
  uses: actions/create-release@latest
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    tag_name: ${{github.run_number}}
    release_name: ${{ steps.datetime.outputs.current_datetime }} (${{ github.run_number }})
    ...

Add version number to release (instead of "Release 6", show "1.40" (automatic increment)

value comes from main.yaml, "release_name: Release ${{github.run_number}}"

Error: ENOENT: no such file or directory, stat './UnityLauncherPro.ZIP'

your zip file is found.. its probably in some other folder?

ERROR 4.7.1 "The type or namespace name 'JsonStringEnumConverter' could not be found (are you missing a using directive or an assembly reference"

add restore nuget to yml: - name: Restore NuGet packages run: nuget restore YourSolution.sln

ERROR

in dotnet-version: 6.0.x Decode the PFX Run $pfx_cert_byte = [System.Convert]::FromBase64String("") Join-Path: D:\a_temp\92c6b365-1b31-4b4d-bf1a-2b097b995024.ps1:3 Line | 3 | $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildP … | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot bind argument to parameter 'Path' because it is null.

SOLUTION Use 6.0.x instead of 7.0.x?

Working example for wpf project

https://github.com/unitycoder/PointCloudConverter/blob/master/.github/workflows/main.yml

@unitycoder
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment