This repository was archived by the owner on Apr 5, 2025. It is now read-only.
Update dev-upload.yml #9
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: Dev Builds | |
| on: | |
| push: | |
| branches: [ "TU1" ] | |
| pull_request: | |
| branches: [ "TU1" ] | |
| jobs: | |
| build-devs: | |
| runs-on: windows-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COMMIT: $env:GITHUB_SHA.SubString(0,7) | |
| OUTPUT_NAME: "Re-Console-Legacy-TU1-dev-${COMMIT}.mrpack" | |
| OUTPUT: artifacts | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.20' | |
| - name: Install Packwiz | |
| run: go install github.com/packwiz/packwiz@latest | |
| - name: Create dev build | |
| run: | | |
| packwiz refresh | |
| packwiz modrinth export --output $OUTPUT_NAME | |
| - name: Prepare artifacts | |
| run: | | |
| robocopy . $OUTPUT $OUTPUT_NAME /r:0 /w:0 | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: "Re-Console-Legacy-TU1-dev-${COMMIT}" | |
| path: artifacts |