Persistence Update #35
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: 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 | |
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 repository | |
env: | |
GH_TOKEN: ${{ secrets.PAT }} | |
run: gh workflow run release --repo dofusdude/dofus2-${{ github.event.inputs.release }} -f version=${{ github.event.inputs.version }} |