Merge remote-tracking branch 'origin/main' #124
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: Package builds (automatic) | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
# Build and attach package | |
package: | |
name: 'Build Package' | |
runs-on: windows-latest | |
steps: | |
- name: 'Debounce 5 minutes' | |
if: ${{ github.event_name != 'workflow_dispatch' }} | |
uses: zachary95/[email protected] | |
with: | |
wait: 300 | |
- name: 'Checkout' | |
uses: thaitype/actions-switch-case@v1 | |
id: package | |
with: | |
default: '0' | |
conditionals-with-values: | | |
${{ 'World-Map-SMP' == github.event.repository.name }} => '1' | |
${{ 'Playlist-Manager-SMP' == github.event.repository.name }} => '2' | |
${{ 'Not-a-Waveform-Seekbar-SMP' == github.event.repository.name }} => '3' | |
${{ 'Timeline-SMP' == github.event.repository.name }} => '4' | |
- uses: actions/[email protected] | |
if: ${{ steps.package.outputs.match != '0' }} | |
- name: 'Create package' | |
if: ${{ steps.package.outputs.match != '0' }} | |
run: ./_createPackage.bat ${{ steps.package.outputs.match }} | |
- name: 'Upload Artifact' | |
if: ${{ steps.package.outputs.match != '0' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: file | |
path: 'packages/*.zip' | |
retention-days: 90 | |
- name: 'No package associated to repository' | |
if: ${{ steps.package.outputs.match == '0' }} | |
run: echo 'No package associated' | |
- name: 'Download the file (at artifacts) and extract the package' | |
if: ${{ steps.package.outputs.match != '0' }} | |
run: echo 'Download the file (at artifacts) and extract the package' |