@@ -34,24 +34,22 @@ jobs:
34
34
# targetos: motomagx
35
35
# targetarch: armv6
36
36
37
- - os : ubuntu-20.04
38
- targetos : nswitch
39
- targetarch : arm64
40
- - os : ubuntu-20.04
41
- targetos : psvita
42
- targetarch : armv7hf
43
- - os : windows-latest
44
- targetos : win32
45
- targetarch : amd64
46
- - os : windows-latest
47
- targetos : win32
48
- targetarch : i386
37
+ # - os: ubuntu-20.04
38
+ # targetos: nswitch
39
+ # targetarch: arm64
40
+ # - os: ubuntu-20.04
41
+ # targetos: psvita
42
+ # targetarch: armv7hf
43
+ # - os: windows-latest
44
+ # targetos: win32
45
+ # targetarch: amd64
46
+ # - os: windows-latest
47
+ # targetos: win32
48
+ # targetarch: i386
49
49
env :
50
50
SDL_VERSION : 2.26.2
51
51
GH_CPU_ARCH : ${{ matrix.targetarch }}
52
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
52
ANDROID_SDK_TOOLS_VER : 4333796
54
- UPLOADTOOL_ISPRERELEASE : true
55
53
steps :
56
54
- name : Checkout
57
55
uses : actions/checkout@v3
61
59
run : bash scripts/gha/deps_${{ matrix.targetos }}.sh
62
60
- name : Build engine
63
61
run : bash scripts/gha/build_${{ matrix.targetos }}.sh
64
- - name : Upload engine (prereleases)
65
- run : bash scripts/continious_upload.sh artifacts/*
66
62
- name : Upload engine (artifacts)
67
63
uses : actions/upload-artifact@v3
68
64
with :
78
74
container :
79
75
image : bilelmoussaoui/flatpak-github-actions:freedesktop-22.08
80
76
options : --privileged
81
- env :
82
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83
- UPLOADTOOL_ISPRERELEASE : true
84
77
steps :
85
78
- name : Checkout
86
79
uses : actions/checkout@v3
91
84
with :
92
85
bundle : ${{ matrix.app }}.flatpak
93
86
manifest-path : scripts/flatpak/${{ matrix.app }}.yml
94
- - name : Upload engine (prereleases)
95
- run : bash scripts/continious_upload.sh ${{ matrix.app }}.flatpak
87
+ - name : Upload engine (artifacts)
88
+ uses : actions/upload-artifact@v3
89
+ with :
90
+ name : artifact-${{ matrix.targetos }}-${{ matrix.targetarch }}
91
+ path : artifacts/*
92
+ release :
93
+ name : " Upload releases"
94
+ runs-on : ubuntu-latest
95
+ needs : [build, flatpak]
96
+ if : ${{ github.event_name == 'push' }}
97
+ env :
98
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
99
+ steps :
100
+ - name : Fetch artifacts
101
+
102
+ with :
103
+ path : artifacts/
104
+ - name : Repackage binaries
105
+ working-directory : artifacts/
106
+ run : |
107
+ for i in artifact-*; do
108
+ mv "$i"/* .
109
+ rm -rf "$i"
110
+ done
111
+ - name : Remove old release
112
+
113
+ with :
114
+ delete_release : true
115
+ tag_name : ${{ github.ref_name == 'master' && 'continious' || format('continious-{0}', github.ref_name) }}
116
+ - name : Upload new release
117
+
118
+ with :
119
+ release_name : Xash3D FWGS Continious ${{ github.ref_name }} Build
120
+ tag : ${{ github.ref_name == 'master' && 'continious' || format('continious-{0}', github.ref_name) }}
121
+ prerelease : true
122
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
123
+ file_glob : true
124
+ file : artifacts/*
0 commit comments