Update datapack-dev.yml #6
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: Datapack Dev Builds | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build-data-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create short commit SHA | |
id: vars | |
run: | | |
shortSha=$(git rev-parse --short ${{ github.sha }}) | |
echo "COMMIT_SHORT_SHA=$shortSha" >> $GITHUB_ENV | |
- name: Prepare artifacts | |
run: | | |
mkdir TU1-temp | |
cp -r ./versions/Common/* ./TU1-temp/ | |
cp -r ./versions/TU1/* ./TU1-temp/ | |
cp ./LICENSE ./TU1-temp/ | |
cp ./README.md ./TU1-temp/ | |
mkdir TU5-temp | |
cp -r ./versions/Common/* ./TU5-temp/ | |
cp -r ./versions/TU5/* ./TU5-temp/ | |
cp ./LICENSE ./TU5-temp/ | |
cp ./README.md ./TU5-temp/ | |
- name: Upload TU1 Data | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "Re-Console-Legacy-Data-TU1-dev-${{ env.COMMIT_SHORT_SHA }}" | |
path: TU1-temp | |
- name: Upload TU5 Data | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "Re-Console-Legacy-Data-TU5-dev-${{ env.COMMIT_SHORT_SHA }}" | |
path: TU5-temp |