Package Datapack v3 #8
Workflow file for this run
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: Package Datapack v3 | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| artifact_version: | |
| description: 'Version of the datapack' | |
| required: true | |
| default: '2.' | |
| alpha_version: | |
| description: 'Alpha version number' | |
| required: false | |
| default: '' | |
| beta_version: | |
| description: 'Beta version number' | |
| required: false | |
| default: '' | |
| custom_name: | |
| description: 'Custom datapack name' | |
| required: false | |
| default: '' | |
| jobs: | |
| upload_x2_edition: | |
| runs-on: windows-2025 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set artifact name | |
| id: set_artifact_name | |
| shell: pwsh | |
| run: | | |
| if ("${{ github.event.inputs.custom_name }}" -ne "") { | |
| Write-Output "artifact_name=${{ github.event.inputs.custom_name }}" >> $env:GITHUB_OUTPUT | |
| } elseif ("${{ github.event.inputs.alpha_version }}" -ne "") { | |
| Write-Output "artifact_name=Ore_Plus_x2-${{ github.event.inputs.artifact_version }}-Alpha${{ github.event.inputs.alpha_version }}" >> $env:GITHUB_OUTPUT | |
| } elseif ("${{ github.event.inputs.beta_version }}" -ne "") { | |
| Write-Output "artifact_name=Ore_Plus_x2-${{ github.event.inputs.artifact_version }}-Beta${{ github.event.inputs.beta_version }}" >> $env:GITHUB_OUTPUT | |
| } else { | |
| Write-Output "artifact_name=Ore_Plus_x2-${{ github.event.inputs.artifact_version }}" >> $env:GITHUB_OUTPUT | |
| } | |
| - name: Upload files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ steps.set_artifact_name.outputs.artifact_name }} | |
| path: 'src/x2/*' | |
| upload_x4_edition: | |
| runs-on: windows-2025 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set artifact name | |
| id: set_artifact_name | |
| shell: pwsh | |
| run: | | |
| if ("${{ github.event.inputs.custom_name }}" -ne "") { | |
| Write-Output "artifact_name=${{ github.event.inputs.custom_name }}" >> $env:GITHUB_OUTPUT | |
| } elseif ("${{ github.event.inputs.alpha_version }}" -ne "") { | |
| Write-Output "artifact_name=Ore_Plus_x4-${{ github.event.inputs.artifact_version }}-Alpha${{ github.event.inputs.alpha_version }}" >> $env:GITHUB_OUTPUT | |
| } elseif ("${{ github.event.inputs.beta_version }}" -ne "") { | |
| Write-Output "artifact_name=Ore_Plus_x4-${{ github.event.inputs.artifact_version }}-Beta${{ github.event.inputs.beta_version }}" >> $env:GITHUB_OUTPUT | |
| } else { | |
| Write-Output "artifact_name=Ore_Plus_x4-${{ github.event.inputs.artifact_version }}" >> $env:GITHUB_OUTPUT | |
| } | |
| - name: Upload files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ steps.set_artifact_name.outputs.artifact_name }} | |
| path: 'src/x4/*' | |
| upload_Ultra_edition: | |
| runs-on: windows-2025 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set artifact name | |
| id: set_artifact_name | |
| shell: pwsh | |
| run: | | |
| if ("${{ github.event.inputs.custom_name }}" -ne "") { | |
| Write-Output "artifact_name=${{ github.event.inputs.custom_name }}" >> $env:GITHUB_OUTPUT | |
| } elseif ("${{ github.event.inputs.alpha_version }}" -ne "") { | |
| Write-Output "artifact_name=Ore_Plus_Ultra-${{ github.event.inputs.artifact_version }}-Alpha${{ github.event.inputs.alpha_version }}" >> $env:GITHUB_OUTPUT | |
| } elseif ("${{ github.event.inputs.beta_version }}" -ne "") { | |
| Write-Output "artifact_name=Ore_Plus_Ultra-${{ github.event.inputs.artifact_version }}-Beta${{ github.event.inputs.beta_version }}" >> $env:GITHUB_OUTPUT | |
| } else { | |
| Write-Output "artifact_name=Ore_Plus_Ultra-${{ github.event.inputs.artifact_version }}" >> $env:GITHUB_OUTPUT | |
| } | |
| - name: Upload files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ steps.set_artifact_name.outputs.artifact_name }} | |
| path: 'src/Ultra/*' |