fix(repository.lic): v2.70 check for proper version format (#2193) #86
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: Publish to EO-Lich5 | |
| on: | |
| # workflow_dispatch: | |
| push: | |
| branches: [ 'master' ] | |
| paths: | |
| - 'type_data/**' | |
| - 'scripts/spell-list.xml' | |
| - 'scripts/alias.lic' | |
| - 'scripts/autostart.lic' | |
| - 'scripts/go2.lic' | |
| - 'scripts/infomon.lic' | |
| - 'scripts/jinx.lic' | |
| - 'scripts/lich5-update.lic' | |
| - 'scripts/log.lic' | |
| - 'scripts/repository.lic' | |
| - 'scripts/vars.lic' | |
| - 'scripts/version.lic' | |
| - 'scripts/xnarost.lic' | |
| # - 'scripts/narost.lic' | |
| # - 'scripts/lnet.lic' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| name: Publish gameobj-data and scripts | |
| steps: | |
| - name: Checkout EO-Scripts | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: '20' | |
| - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 | |
| with: | |
| ruby-version: '2.7' | |
| - name: Setup bundler cache | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 #v4.3.0 | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gems- | |
| - name: Update apt repo sources | |
| run: sudo apt-get update -y | |
| - name: Install xmllint | |
| uses: awalsh128/cache-apt-pkgs-action@acb598e5ddbc6f68a970c5da0688d2f3a9f04d05 # v1.6.0 | |
| with: | |
| packages: libxml2-utils | |
| version: 1.0 | |
| - name: Install ruby gem dependencies with bundler | |
| run: | | |
| gem install bundler | |
| bundle config path vendor/bundle | |
| bundle install --jobs 4 --retry 3 | |
| - name: Run type data migrations to create gameobj-data.xml | |
| run: | | |
| bin/migrate | |
| - name: Copy gameobj-data.xml and scripts for EO-Lich5 | |
| run: | | |
| mkdir /home/runner/work/scripts/lich5 | |
| mkdir /home/runner/work/scripts/lich5/data | |
| mkdir /home/runner/work/scripts/lich5/scripts | |
| cp dist/gameobj-data.xml /home/runner/work/scripts/lich5/data | |
| cp scripts/spell-list.xml /home/runner/work/scripts/lich5/data | |
| cp scripts/alias.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/autostart.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/go2.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/infomon.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/jinx.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/lich5-update.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/log.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/repository.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/vars.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/version.lic /home/runner/work/scripts/lich5/scripts | |
| cp scripts/xnarost.lic /home/runner/work/scripts/lich5/scripts | |
| # cp scripts/narost.lic /home/runner/work/scripts/lich5/scripts | |
| # cp scripts/lnet.lic /home/runner/work/scripts/lich5/scripts | |
| - name: Checkout EO-Lich5 | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| repository: elanthia-online/lich-5 | |
| token: ${{secrets.PAT_FOR_JINX_PUSH}} | |
| - name: Pushes GameObj-data.xml and scripts to EO-Lich5 | |
| run: | | |
| cp /home/runner/work/scripts/lich5/data/* /home/runner/work/scripts/scripts/data/ | |
| cp /home/runner/work/scripts/lich5/scripts/* /home/runner/work/scripts/scripts/scripts/ | |
| git config --global user.email "action@github.com" | |
| git config --global user.name "github-actions" | |
| git add data | |
| git add scripts | |
| git commit -m "Automatic publish from github.com/elanthia-online/scripts" | |
| git push |