-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.15 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Upload Latest Artifacts to Release
on:
release:
types: [released]
jobs:
package:
name: Release New Slippi Playback Dolphin
runs-on: ubuntu-latest
steps:
- name: 'Get version'
run: |
echo "VERSION=$(echo ${{ github.ref }} | cut -d "v" -f 2)" >> $GITHUB_ENV
- name: Download latest artifacts
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: main.yml
branch: slippi
repo: project-slippi/dolphin
- name: Organize release files
run: |
rm -rf *netplay*
find ./ -mindepth 2 -type f -exec mv -t ./ -i '{}' +
find . -type d -empty -delete
mv *linux* "playback-${{ env.VERSION }}-Linux.zip"
mv *.dmg "playback-${{ env.VERSION }}-Mac.dmg"
mv *windows* "playback-${{ env.VERSION }}-Win.zip"
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./*
tag: ${{ github.ref }}
overwrite: true
file_glob: true