diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/actions/openvic-env/action.yml (renamed from .github/actions/openvic2-env/action.yml) | 10 | ||||
-rw-r--r-- | .github/workflows/builds.yml | 22 |
2 files changed, 16 insertions, 16 deletions
diff --git a/.github/actions/openvic2-env/action.yml b/.github/actions/openvic-env/action.yml index 8fea1b3..acb428f 100644 --- a/.github/actions/openvic2-env/action.yml +++ b/.github/actions/openvic-env/action.yml @@ -1,5 +1,5 @@ -name: Setup OpenVic2 Environment -description: Setup OpenVic2 Environment +name: Setup OpenVic Environment +description: Setup OpenVic Environment runs: using: "composite" steps: @@ -7,9 +7,9 @@ runs: uses: actions/github-script@v6 with: script: | - const commit_name = 'OPENVIC2_COMMIT'; - const tag_name = 'OPENVIC2_TAG'; - const release_name = 'OPENVIC2_RELEASE'; + const commit_name = 'OPENVIC_COMMIT'; + const tag_name = 'OPENVIC_TAG'; + const release_name = 'OPENVIC_RELEASE'; var commit_sha = process.env["GITHUB_SHA"]; if(context.eventName === 'pull_request') { commit_sha = context.payload.pull_request.head.sha; diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 664f8e4..b782ca4 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -61,7 +61,7 @@ jobs: submodules: recursive - name: Setup Environment - uses: ./.github/actions/openvic2-env + uses: ./.github/actions/openvic-env - name: Set up Python uses: actions/setup-python@v4 @@ -97,28 +97,28 @@ jobs: - name: Delete compilation files if: ${{ matrix.platform == 'windows' }} run: | - Remove-Item game/bin/openvic2/* -Include *.exp,*.lib,*.pdb -Force + Remove-Item game/bin/openvic/* -Include *.exp,*.lib,*.pdb -Force - name: Upload extension artifact uses: actions/upload-artifact@v3 with: name: ${{ github.event.repository.name }}-extension path: | - ${{ github.workspace }}/game/bin/openvic2/* + ${{ github.workspace }}/game/bin/openvic/* - name: Archive Release uses: thedoctor0/zip-release@0.7.1 with: type: 'zip' - filename: 'libopenvic2.${{ matrix.platform }}.${{ matrix.arch }}.zip' - path: '${{ github.workspace }}/game/bin/openvic2/' + filename: 'libopenvic.${{ matrix.platform }}.${{ matrix.arch }}.zip' + path: '${{ github.workspace }}/game/bin/openvic/' if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - name: Create and upload asset uses: ncipollo/release-action@v1 with: allowUpdates: true - artifacts: "libopenvic2.${{ matrix.platform }}.${{ matrix.arch }}.zip" + artifacts: "libopenvic.${{ matrix.platform }}.${{ matrix.arch }}.zip" omitNameDuringUpdate: true omitBodyDuringUpdate: true token: ${{ secrets.GITHUB_TOKEN }} @@ -135,13 +135,13 @@ jobs: uses: actions/checkout@v3.3.0 - name: Setup Environment - uses: ./.github/actions/openvic2-env + uses: ./.github/actions/openvic-env - name: Download artifact uses: actions/download-artifact@v3 with: name: ${{ github.event.repository.name }}-extension - path: game/bin/openvic2 + path: game/bin/openvic - name: Export pack file id: export_game @@ -154,7 +154,7 @@ jobs: export_debug: true relative_export_path: ./game/export - - run: mv "./game/export/LinuxX11 x86_64/OpenVic2.x86_64.pck" ./game/export/${{ github.event.repository.name }}.pck + - run: mv "./game/export/LinuxX11 x86_64/OpenVic.x86_64.pck" ./game/export/${{ github.event.repository.name }}.pck - name: Upload pack artifact uses: actions/upload-artifact@v3 @@ -176,13 +176,13 @@ jobs: uses: actions/checkout@v3.3.0 - name: Setup Environment - uses: ./.github/actions/openvic2-env + uses: ./.github/actions/openvic-env - name: Download artifact uses: actions/download-artifact@v3 with: name: ${{ github.event.repository.name }}-extension - path: game/bin/openvic2 + path: game/bin/openvic - name: Install WINE id: wine_install |