Persistence Update #154
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: Persistence Update | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: "Game version" | |
required: true | |
release: | |
description: "Game release" | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
- name: Prefetch docker images | |
run: | | |
docker pull stelzo/doduda-umbu:amd64 | |
docker pull stelzo/assetstudio-cli:amd64 | |
- name: Build | |
run: go build -v . | |
- name: Run and Update | |
run: | | |
./doduda --headless --ignore mountsimages --ignore itemsimages --release ${{ github.event.inputs.release }} | |
./doduda map --headless --persistence-dir persistent --release ${{ github.event.inputs.release }} | |
git config --global user.name 'stelzo' | |
git config --global user.email '[email protected]' | |
git add persistent | |
git commit -m "update persistent files" || true | |
git push | |
- name: Notify Dofus 2 repository | |
if: startsWith(github.event.inputs.version, '2') | |
env: | |
GH_TOKEN: ${{ secrets.PAT }} | |
run: gh workflow run release --repo dofusdude/dofus2-${{ github.event.inputs.release }} -f version=${{ github.event.inputs.version }} | |
- name: Notify Dofus 3 repository | |
if: startsWith(github.event.inputs.version, '3') | |
env: | |
GH_TOKEN: ${{ secrets.PAT }} | |
run: | | |
if [[ "${{ github.event.inputs.release }}" == "dofus3" || "${{ github.event.inputs.release }}" == "main" ]]; then | |
REPO="dofusdude/dofus3-main" | |
else | |
REPO="dofusdude/dofus3-beta" | |
fi | |
gh workflow run release --repo $REPO -f version=${{ github.event.inputs.version }} |