Merge pull request #6872 from planetarium/feature/auto-select-grind20 #30453
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
on: | |
push: | |
branches: | |
- main | |
- development | |
- rc-v* | |
- release/* | |
- hotfix/* | |
- fast-track/* | |
tags: ["*"] | |
pull_request: | |
types: [ready_for_review, opened, reopened, auto_merge_enabled] | |
issue_comment: [] | |
name: Build-misc | |
jobs: | |
update-libplanet-dlls: | |
runs-on: ubuntu-20.04 | |
name: Update bundled Libplanet assemblies | |
if: >- | |
github.event_name == 'issue_comment' && | |
github.event.issue.pull_request && | |
github.event.sender.type == 'User' && | |
contains(github.event.comment.body, '/update-libplanet-dlls') | |
steps: | |
- uses: dkershner6/reaction-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commentId: ${{ github.event.comment.id }} | |
reaction: eyes | |
- id: pr-metadata | |
run: | | |
set -evxou pipefail | |
curl -o "/tmp/pr-$PR_ID.json" "$PR_API_URL" | |
jq -r '"::set-output name=repo::" + .head.repo.full_name' \ | |
"/tmp/pr-$PR_ID.json" | |
jq -r '"::set-output name=ref::" + .head.ref' \ | |
"/tmp/pr-$PR_ID.json" | |
env: | |
PR_ID: ${{ github.event.issue.id }} | |
PR_API_URL: ${{ github.event.issue.pull_request.url }} | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ steps.pr-metadata.outputs.repo }} | |
ref: ${{ steps.pr-metadata.outputs.ref }} | |
submodules: recursive | |
lfs: true | |
- run: . scripts/update-libplanet-dlls.ps1 | |
shell: pwsh | |
- run: sudo apt install libimage-exiftool-perl | |
- run: | | |
set -evxou pipefail | |
version="$(.github/bin/check-libplanet-version.sh | head -n1)" | |
git config user.name "$(curl $GIT_AUTHOR_API_URL | jq -r .name)" | |
git config user.email "$GIT_AUTHOR_EMAIL" | |
git commit \ | |
-m "Upgrade Libplanet assemblies to $version" \ | |
nekoyume/Assets/Packages/Libplanet*.{dll,xml} | |
git push | |
env: | |
GIT_AUTHOR_API_URL: ${{ github.event.sender.url }} | |
GIT_AUTHOR_EMAIL: >- | |
${{ github.event.sender.id }}+${{ | |
github.event.sender.login }}@users.noreply.github.com | |
- if: failure() | |
uses: dkershner6/reaction-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commentId: ${{ github.event.comment.id }} | |
reaction: confused | |
- if: success() | |
uses: dkershner6/reaction-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commentId: ${{ github.event.comment.id }} | |
reaction: rocket | |
build_installer: | |
runs-on: windows-latest | |
name: build installer | |
if: github.event_name == 'push' || github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@v2.3.4 | |
- run: dotnet publish tools/Updater/Updater/Updater.csproj -r win-x64 --self-contained | |
- run: ISCC tools/installer/installer.iss |