📝 add troubleshooting section for icons #250
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
- "rc*" | |
- "beta*" | |
- "alpha*" | |
env: | |
WOLVENKIT_CORE_VERSION: '8.12.2' | |
WOLVENKIT_CLI_VERSION: '8.12.2' | |
DOTNET_VERSION: '8.0.x' | |
IS_DRAFT: ${{ startsWith(github.ref_name, 'beta') || startsWith(github.ref_name, 'alpha') }} | |
jobs: | |
bundle-mod: | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Just | |
uses: extractions/setup-just@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '${{ env.DOTNET_VERSION }}' | |
- name: Setup WolvenKit CLI | |
run: | | |
C:\msys64\usr\bin\wget.exe https://github.com/WolvenKit/WolvenKit/releases/download/"${{ env.WOLVENKIT_CORE_VERSION }}"/"${{ env.WOLVENKIT_ARTIFACT }}" | |
7z x "${{ env.WOLVENKIT_ARTIFACT }}" | |
dotnet tool install -g wolvenkit.cli | |
env: | |
WOLVENKIT_ARTIFACT: WolvenKit.Console-${{ env.WOLVENKIT_CLI_VERSION }}.zip | |
- name: Bundle files | |
run: just ci 'mod-windows' | |
env: | |
WK_CLI: cp77tools | |
- name: Zip files | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: 'Addicted-mod-windows-${{ github.ref_name }}.zip' | |
directory: ./mod-windows | |
path: . | |
recursive_exclusions: ${{ (env.IS_DRAFT && 'Debug.reds debug.reds') || '' }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mod-windows-${{ github.ref_name }} | |
path: mod-windows/Addicted-mod-windows-${{ github.ref_name }}.zip | |
if-no-files-found: error | |
bundle-translations: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
locale: | |
- en-us | |
- fr-fr | |
- es-es | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Just | |
uses: extractions/setup-just@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Bundle files | |
run: just bundle 'translation-${{ matrix.locale }}' "${{ matrix.locale }}" | |
- name: Zip files | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: 'Addicted-translation-${{ matrix.locale }}-${{ github.ref_name }}.zip' | |
directory: ./translation-${{ matrix.locale }} | |
path: . | |
- name: Upload translations | |
uses: actions/upload-artifact@v4 | |
with: | |
name: translation-${{ matrix.locale }}-${{ github.ref_name }} | |
path: translation-${{ matrix.locale }}/Addicted-translation-${{ matrix.locale }}-${{ github.ref_name }}.zip | |
if-no-files-found: error | |
release: | |
if: ${{ startsWith(github.event.ref, 'refs/tags') }} | |
runs-on: windows-latest | |
needs: [bundle-mod, bundle-translations] | |
steps: | |
- name: Download mod | |
uses: actions/download-artifact@v4 | |
with: | |
name: mod-windows-${{ github.ref_name }} | |
path: release | |
- name: Download English translations | |
uses: actions/download-artifact@v4 | |
with: | |
name: translation-en-us-${{ github.ref_name }} | |
path: release | |
- name: Download French translations | |
uses: actions/download-artifact@v4 | |
with: | |
name: translation-fr-fr-${{ github.ref_name }} | |
path: release | |
- name: Download Spanish translations | |
uses: actions/download-artifact@v4 | |
with: | |
name: translation-es-es-${{ github.ref_name }} | |
path: release | |
- name: Create release ${{ github.ref_name }} | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "release/*.zip" | |
draft: ${{ env.IS_DRAFT }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
artifactErrorsFailBuild: true |