Skip to content

Pack and upload dev versions #25

Pack and upload dev versions

Pack and upload dev versions #25

name: Pack Randomizer
on:
workflow_dispatch: # Allows manual triggers
push:
branches:
- main
paths:
- "Dolphin scripts/Entrance Randomizer/**"
- "Dolphin scripts/pack-rando.ps1"
- "Various technical notes/transition_infos.json"
- ".github/workflows/pack-randomizer.yaml"
pull_request:
branches:
- main
paths:
- "Dolphin scripts/Entrance Randomizer/**"
- "Dolphin scripts/pack-rando.ps1"
- "Various technical notes/transition_infos.json"
- ".github/workflows/pack-randomizer.yaml"
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
FORCE_COLOR: 1
jobs:
pack-randomizer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: '& "Dolphin scripts/pack-rando.ps1"'
shell: pwsh
- name: Get pack filename
id: packname
run: echo "::set-output name=packname::$(find -name 'Entrance Randomizer v*.zip' | sed 's/\.zip$//1' | sed 's/\./$//1')"
- name: Extract premade archive
run: 7z x '${{ steps.packname.outputs.packname }}.zip' -o'${{ steps.packname.outputs.packname
}}'
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.packname.outputs.packname }}
path: ${{ steps.packname.outputs.packname }}/*