replaced linker configuration #20
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: Create Release 📦 | |
on: | |
push: | |
branches: | |
- master | |
env: | |
package_path: "lachee-utilities.unitypackage" | |
jobs: | |
# build the packages | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '3.1.x' | |
# Install the packager | |
- name: Install Unity Packager | |
run: | | |
git clone https://github.com/Lachee/Unity-Package-Exporter.git tools/unity-package-exporter | |
dotnet publish -c Release -o tools tools/unity-package-exporter/UnityPackageExporter | |
# Pack the assets | |
- name: Package | |
run: | | |
echo "Creating package" | |
dotnet tools/UnityPackageExporter.dll \ | |
./ \ | |
discord-rpc-unity.unitypackage \ | |
--exclude "Samples~" \ | |
--assets "Runtime/**/*" \ | |
--assets "Editor/**/*" \ | |
--skip-dependency-check \ | |
-r . | |
# Upload artifact | |
- name: Upload Artifact | |
uses: actions/[email protected] | |
with: | |
name: Unity Package | |
path: discord-rpc-unity.unitypackage | |
# Tag the build | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Klemensas/action-autotag@stable | |
id: auto-tag | |
with: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
tag_prefix: "v" | |
outputs: | |
tag: ${{ steps.auto-tag.outputs.tagname }} | |
# Update the release | |
release: | |
runs-on: ubuntu-latest | |
needs: [ build, tag ] | |
if: ${{ startsWith(needs.tag.outputs.tag, 'v') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
path: artifacts | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: ${{ needs.tag.outputs.tag }} | |
prerelease: true | |
title: Release ${{ needs.tag.outputs.tag }} | |
files: artifacts/**/*.unitypackage |