Persistence Update #265
This file contains hidden or 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: Prefetch docker images | |
| run: | | |
| docker pull stelzo/doduda-umbu:amd64 | |
| docker pull stelzo/assetstudio-cli:amd64 | |
| - name: Get doduda | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh release download -R dofusdude/doduda -p "doduda_Linux_x86_64.tar.gz" | |
| tar -xzf "doduda_Linux_x86_64.tar.gz" | |
| chmod +x doduda | |
| ./doduda --version | |
| - name: Run and Update | |
| run: | | |
| ./doduda --headless --ignore 'images-*' --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 'stelzo@users.noreply.github.com' | |
| 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 }} |