🎨 rename ci artifacts #197
Workflow file for this run
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.11.1' | |
WOLVENKIT_CLI_VERSION: '1.11.0' | |
DOTNET_VERSION: '7.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 'release-mod-windows-${{ github.ref_name }}' | |
env: | |
WK_CLI: cp77tools | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Addicted-mod-windows-${{ github.ref_name }} | |
path: release-mod-windows-${{ github.ref_name }} | |
if-no-files-found: error | |
bundle-translations: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
locale: | |
- en-us | |
- fr-fr | |
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 'release-voices-${{ matrix.locale }}' "${{ matrix.locale }}" | |
- name: Upload translations | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Addicted-translation-${{ matrix.locale }}-${{ github.ref_name }} | |
path: release-voices-${{ matrix.locale }} | |
if-no-files-found: error | |
release: | |
if: ${{ startsWith(github.event.ref, 'refs/tags') }} | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
locale: | |
- en-us | |
- fr-fr | |
needs: [bundle-mod, bundle-translations] | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: Addicted-mod-windows-${{ github.ref_name }} | |
path: release | |
- name: Download ${{ matrix.locale }} translations | |
uses: actions/download-artifact@v4 | |
with: | |
name: Addicted-translation-${{ matrix.locale }}-${{ 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 |