Fixed broken IVF processing. #288
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-local | |
on: | |
push: | |
tags: | |
- v*.*.* | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
outputs: | |
linuxArtifact: ${{ steps.build_linux.outputs.file_name_lin }} | |
windowsArtifact: ${{ steps.build_windows.outputs.file_name_win }} | |
version: ${{ steps.get_version.outputs.version }} | |
strategy: | |
fail-fast: true | |
matrix: | |
# We use self-hosted because this action often runs out of memory on github's own servers. | |
os: [self-hosted-windows, self-hosted-linux] | |
include: | |
# Old windows configuration. | |
# No longer used due to memory problems on compilation. | |
#- {os: windows-latest, TARGET: x86_64-pc-windows-msvc, EXTENSION: zip, MIME: application/x-zip-compressed, DDISK: D} | |
# Self-hosted windows requires: | |
# - Windows 10 x64. | |
# - VSTools installed. | |
# - 2 disks (C: and E:). | |
- {os: self-hosted-windows, TARGET: x86_64-pc-windows-msvc, EXTENSION: zip, MIME: application/x-zip-compressed, DDISK: E} | |
# Self-hosted linux requires: | |
# - Archlinux Docker with some custom stuff. | |
- {os: self-hosted-linux, TARGET: x86_64-unknown-linux-gnu, EXTENSION: tar.zst, MIME: application/tar+zstd} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Get Version | |
id: get_version | |
uses: battila7/[email protected] | |
- name: Build RPFM (Linux) | |
if: matrix.os == 'self-hosted-linux' | |
shell: bash | |
run: | | |
cd /usr/src/app/_work/rpfm/rpfm | |
cargo build --release --bin rpfm_cli | |
cargo build --release --features "enable_tools" --bin rpfm_ui | |
- name: Build RPFM (Windows) | |
id: build_windows | |
if: matrix.os == 'self-hosted-windows' | |
shell: pwsh | |
run: | | |
echo "file_name_win=rpfm-${{ steps.get_version.outputs.version }}-${{ matrix.TARGET }}.${{ matrix.EXTENSION }}" >> $env:GITHUB_OUTPUT | |
${{ matrix.DDISK }}:\Craft\craft\craftenv.ps1 | |
# TODO: Build this from tag. | |
cp C:\QtRMV2Widget.lib C:\actions-runner\_work\rpfm\rpfm\3rdparty\builds\ | |
cp C:\ImportExport.lib C:\actions-runner\_work\rpfm\rpfm\3rdparty\builds\ | |
cp C:\QtRenderingWidget.lib C:\actions-runner\_work\rpfm\rpfm\3rdparty\builds\ | |
cp C:\Rldx.lib C:\actions-runner\_work\rpfm\rpfm\3rdparty\builds\ | |
cd C:\actions-runner\_work\rpfm\rpfm | |
# First build every executable one by one, so we can speed up compilation. | |
cargo build --release --bin rpfm_cli | |
cargo build --release --features "support_rigidmodel support_modern_dds enable_tools" --bin rpfm_ui | |
- name: Prepare Assets for Release (Linux) | |
id: build_linux | |
if: matrix.os == 'self-hosted-linux' | |
run: | | |
echo "file_name_lin=rpfm-${{ steps.get_version.outputs.version }}-${{ matrix.TARGET }}.${{ matrix.EXTENSION }}" >> $GITHUB_OUTPUT | |
# Go back one folder to not put the built files in the repo. | |
cd /usr/src/app/_work/rpfm/ | |
mkdir -p build/usr/bin/ | |
cp -R rpfm/target/release/rpfm_cli build/usr/bin/rpfm_cli | |
cp -R rpfm/target/release/rpfm_ui build/usr/bin/rpfm_ui | |
# The dark theme. May be removed in a future cleanup. | |
mkdir -p build/usr/share/rpfm/ | |
cp -R rpfm/dark-theme.qss build/usr/share/rpfm/dark-theme.qss | |
# The icons. | |
mkdir -p build/usr/share/rpfm/icons/ | |
cp -R rpfm/icons/* build/usr/share/rpfm/icons/ | |
# The language files. | |
mkdir -p build/usr/share/rpfm/locale/ | |
cp -R rpfm/locale/* build/usr/share/rpfm/locale/ | |
# The UI files. | |
mkdir -p build/usr/share/rpfm/ui/ | |
cp -R rpfm/rpfm_ui/ui_templates/* build/usr/share/rpfm/ui/ | |
# Shortcuts. | |
mkdir -p build/usr/share/applications | |
cp -R rpfm/install/arch/rpfm.desktop build/usr/share/applications/rpfm.desktop | |
# License. | |
mkdir -p build/usr/share/licenses/rpfm | |
cp -R rpfm/LICENSE build/usr/share/licenses/rpfm/LICENSE | |
# And finally create the compressed file. | |
tar --zstd -cf rpfm-${{ steps.get_version.outputs.version }}-${{ matrix.TARGET }}.${{ matrix.EXTENSION }} -C build usr | |
- name: Prepare Assets for Release (Windows) | |
if: matrix.os == 'self-hosted-windows' | |
run: | | |
cd ${{ matrix.DDISK }}:\ | |
rm -r -fo ${{ matrix.DDISK }}:\deploy | |
mkdir deploy | |
cd deploy | |
mkdir rpfm-release-assets | |
cd rpfm-release-assets | |
# Copy Breeze icons into the release. | |
mkdir -p data/icons | |
cp "${{ matrix.DDISK }}:\Craft\bin\data\icons\breeze" "${{ matrix.DDISK }}:\deploy\rpfm-release-assets\data\icons\" -recurse | |
cp "${{ matrix.DDISK }}:\Craft\bin\data\icons\breeze-dark" "${{ matrix.DDISK }}:\deploy\rpfm-release-assets\data\icons\" -recurse | |
# Here we copy all the dlls required by RPFM. Otherwise we'll have to manually update them on every freaking release, and for 2 months that's been a royal PITA. | |
mkdir designer | |
cp ${{ matrix.DDISK }}:\Craft\plugins\designer\*.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\designer\ | |
mkdir iconengines | |
cp ${{ matrix.DDISK }}:\Craft\plugins\iconengines\KIconEnginePlugin.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\iconengines\ | |
cp ${{ matrix.DDISK }}:\Craft\plugins\iconengines\qsvgicon.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\iconengines\ | |
mkdir imageformats | |
cp ${{ matrix.DDISK }}:\Craft\plugins\imageformats\*.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\imageformats\ | |
cp C:\actions-runner\_work\rpfm\rpfm/3rdparty/builds/qdds.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\imageformats\ | |
# TODO: Check if we have to copy the kf5 folder. | |
mkdir platforms | |
cp ${{ matrix.DDISK }}:\Craft\plugins\platforms\qwindows.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\platforms\ | |
mkdir styles | |
cp ${{ matrix.DDISK }}:\Craft\plugins\styles\qwindowsvistastyle.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\styles\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\d3dcompiler_47.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\dbus-1-3.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\editorconfig.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\freetype.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
#cp ${{ matrix.DDISK }}:\Craft\bin\git2.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\harfbuzz.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\iconv.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\icudt??.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\icuin??.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\icuuc??.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\intl-8.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\jpeg62.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5Archive.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5Codecs.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5Completion.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5ConfigCore.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5ConfigGui.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5ConfigWidgets.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5CoreAddons.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5Crash.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5DBusAddons.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5GuiAddons.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5I18n.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5IconThemes.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5ItemViews.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5JobWidgets.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5KIOCore.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5KIOGui.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5KIOWidgets.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5Parts.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5Service.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5Solid.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5SonnetCore.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5SonnetUi.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5SyntaxHighlighting.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5TextEditor.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5TextWidgets.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5WidgetsAddons.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5WindowSystem.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\KF5XmlGui.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\libbzip2.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\libcrypto*.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\libEGL.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\libGLESV2.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\liblzma.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\libpng16.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\libssl*.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
# Are these still neccesary? | |
cp ${{ matrix.DDISK }}:\Craft\bin\msvcp140.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\msvcp140_1.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\msvcp140_2.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
#cp ${{ matrix.DDISK }}:\Craft\bin\pcre.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\pcre2-8.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\pcre2-16.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5Core.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5DBus.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5Gui.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5Network.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5PrintSupport.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5Qml.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5Svg.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5TextToSpeech.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5Widgets.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\Qt5Xml.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
# Same as before. Still neccesary? | |
cp ${{ matrix.DDISK }}:\Craft\bin\vcruntime140.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\vcruntime140_1.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\tiff.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\zlib1.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
cp ${{ matrix.DDISK }}:\Craft\bin\zstd.dll ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ | |
# Here we copy files generated from the compilation. | |
cp C:\actions-runner\_work\rpfm\rpfm/target/release/rpfm_ui.exe ${{ matrix.DDISK }}:\deploy\rpfm-release-assets | |
cp C:\actions-runner\_work\rpfm\rpfm/target/release/rpfm_ui.pdb ${{ matrix.DDISK }}:\deploy\rpfm-release-assets | |
cp C:\actions-runner\_work\rpfm\rpfm/target/release/rpfm_cli.exe ${{ matrix.DDISK }}:\deploy\rpfm-release-assets | |
cp C:\actions-runner\_work\rpfm\rpfm/target/release/rpfm_cli.pdb ${{ matrix.DDISK }}:\deploy\rpfm-release-assets | |
# Here we copy assets from the repo. | |
mkdir icons | |
mkdir locale | |
mkdir ui | |
cp C:\actions-runner\_work\rpfm\rpfm/LICENSE ${{ matrix.DDISK }}:\deploy\rpfm-release-assets | |
cp C:\actions-runner\_work\rpfm\rpfm/Changelog.md ${{ matrix.DDISK }}:\deploy\rpfm-release-assets | |
cp C:\actions-runner\_work\rpfm\rpfm/Changelog.md ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\Changelog.txt | |
cp C:\actions-runner\_work\rpfm\rpfm/dark-theme.qss ${{ matrix.DDISK }}:\deploy\rpfm-release-assets | |
cp C:\actions-runner\_work\rpfm\rpfm/icons/* ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\icons\ | |
cp C:\actions-runner\_work\rpfm\rpfm/locale/* ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\locale\ | |
cp C:\actions-runner\_work\rpfm\rpfm/rpfm_ui/ui_templates/* ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\ui\ | |
# These assets are for the model renderer. | |
# mkdir assets | |
# cp -R C:\actions-runner\_work\rpfm\rpfm/assets/* ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\assets\ | |
# Execute windeployqt to add missing translations and the vcredist if needed. | |
${{ matrix.DDISK }}:\Craft\craft\craftenv.ps1 | |
cd ${{ matrix.DDISK }}:\deploy\rpfm-release-assets | |
windeployqt rpfm_ui.exe | |
# Remove extra files that are not really needed for execution. | |
rm -fo ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\vc_redist.x64.exe | |
rm -fo ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\icons\breeze-icons.rcc | |
rm -fo ${{ matrix.DDISK }}:\deploy\rpfm-release-assets\icons\breeze-icons-dark.rcc | |
7z a rpfm-${{ steps.get_version.outputs.version }}-${{ matrix.TARGET }}.${{ matrix.EXTENSION }} .\** | |
- name: Upload build artifact (Linux) | |
id: upload-release-asset-linux | |
if: matrix.os == 'self-hosted-linux' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rpfm-${{ steps.get_version.outputs.version }}-${{ matrix.TARGET }}.${{ matrix.EXTENSION }} | |
path: /usr/src/app/_work/rpfm/rpfm-${{ steps.get_version.outputs.version }}-${{ matrix.TARGET }}.${{ matrix.EXTENSION }} | |
- name: Upload build artifact (Windows) | |
id: upload-release-asset-windows | |
if: matrix.os == 'self-hosted-windows' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rpfm-${{ steps.get_version.outputs.version }}-${{ matrix.TARGET }}.${{ matrix.EXTENSION }} | |
path: ${{ matrix.DDISK }}:/deploy/rpfm-release-assets/rpfm-${{ steps.get_version.outputs.version }}-${{ matrix.TARGET }}.${{ matrix.EXTENSION }} | |
create_release: | |
name: Create Release | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
outputs: | |
# Concatenated because it's either one or the other. | |
upload_url: ${{ steps.create_release_beta.outputs.upload_url }}${{ steps.create_release_stable.outputs.upload_url }} | |
is_beta: ${{ steps.check_version_format_bash.outputs.is_beta }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get Changelog Entry | |
id: changelog_reader | |
uses: mindsers/changelog-reader-action@v2 | |
with: | |
path: ./Changelog.md | |
- name: Check Version Format in Tag | |
id: check_version_format | |
uses: nowsprinting/[email protected] | |
- name: Check the release type | |
id: check_version_format_bash | |
shell: bash | |
run: | | |
if [[ ${{ steps.check_version_format.outputs.patch }} -gt 98 ]]; then | |
echo "is_beta=1" >> $GITHUB_OUTPUT | |
else | |
echo "is_beta=0" >> $GITHUB_OUTPUT | |
fi | |
- name: Create Release (beta) | |
id: create_release_beta | |
if: steps.check_version_format_bash.outputs.is_beta == 1 | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release beta ${{ github.ref }} | |
body: ${{ steps.changelog_reader.outputs.changes }} | |
draft: true | |
prerelease: true | |
- name: Create Release (stable) | |
id: create_release_stable | |
if: steps.check_version_format_bash.outputs.is_beta == 0 | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
body: | | |
[![become_a_patron_button](https://user-images.githubusercontent.com/15714929/40394531-2130b9ce-5e24-11e8-91a2-bbf8e6e75d21.png)][Patreon] | |
${{ steps.changelog_reader.outputs.changes }} | |
[Patreon]: https://www.patreon.com/RPFM | |
draft: true | |
prerelease: false | |
upload_release_assets: | |
name: Upload Release Assets | |
needs: | |
- build | |
- create_release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download all artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
path: ./downloads | |
- name: List downloads | |
run: | | |
ls -lR downloads | |
# TODO: Move the mimes out. | |
- name: Upload Release Asset (Linux) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ needs.create_release.outputs.upload_url }} | |
asset_path: ./downloads/${{ needs.build.outputs.linuxArtifact }}/${{ needs.build.outputs.linuxArtifact }} | |
asset_name: ${{ needs.build.outputs.linuxArtifact }} | |
asset_content_type: application/tar+zstd | |
- name: Upload Release Asset (Windows) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ needs.create_release.outputs.upload_url }} | |
asset_path: ./downloads/${{ needs.build.outputs.windowsArtifact }}/${{ needs.build.outputs.windowsArtifact }} | |
asset_name: ${{ needs.build.outputs.windowsArtifact }} | |
asset_content_type: application/x-zip-compressed |