Skip to content

Commit c308d6a

Browse files
committed
Updated workflows
1 parent 286f6ed commit c308d6a

File tree

4 files changed

+21
-41
lines changed

4 files changed

+21
-41
lines changed

.github/workflows/linux.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
path: ${{ env.PROJECT_NAME }}
2828

2929
- name: Checkout raylib repo
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
with:
3232
repository: raysan5/raylib
3333
path: raylib
@@ -66,21 +66,16 @@ jobs:
6666
ls ${{ env.PROJECT_RELEASE_PATH }}
6767
7z a ./${{ env.PROJECT_RELEASE_PATH }}.zip ./${{ env.PROJECT_RELEASE_PATH }}
6868
69-
# Issue: Double zip: https://github.com/actions/upload-artifact/issues/39
7069
- name: Upload Artifacts
7170
uses: actions/upload-artifact@v4
7271
with:
7372
name: ${{ env.PROJECT_RELEASE_PATH }}.zip
7473
path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
75-
76-
# Alternative: https://github.com/marketplace/actions/gh-release
74+
7775
- name: Upload Artifact to Release
78-
uses: actions/upload-release-asset@v1.0.1
76+
uses: softprops/action-gh-release@v1
77+
with:
78+
files: ${{ env.PROJECT_RELEASE_PATH }}.zip
7979
env:
8080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81-
with:
82-
upload_url: ${{ github.event.release.upload_url }}
83-
asset_name: ${{ env.PROJECT_RELEASE_PATH }}.zip
84-
asset_path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
85-
asset_content_type: application/zip
8681
if: github.event_name == 'release' && github.event.action == 'published'

.github/workflows/macos.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
path: ${{ env.PROJECT_NAME }}
3535

3636
- name: Checkout raylib repo
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3838
with:
3939
repository: raysan5/raylib
4040
path: raylib
@@ -118,21 +118,16 @@ jobs:
118118
ls ${{ env.PROJECT_RELEASE_PATH }}
119119
7z a ./${{ env.PROJECT_RELEASE_PATH }}.zip ./${{ env.PROJECT_RELEASE_PATH }}
120120
121-
# Issue: Double zip: https://github.com/actions/upload-artifact/issues/39
122121
- name: Upload Artifacts
123122
uses: actions/upload-artifact@v4
124123
with:
125124
name: ${{ env.PROJECT_RELEASE_PATH }}.zip
126125
path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
127-
128-
# Alternative: https://github.com/marketplace/actions/gh-release
126+
129127
- name: Upload Artifact to Release
130-
uses: actions/upload-release-asset@v1.0.1
128+
uses: softprops/action-gh-release@v1
129+
with:
130+
files: ${{ env.PROJECT_RELEASE_PATH }}.zip
131131
env:
132132
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133-
with:
134-
upload_url: ${{ github.event.release.upload_url }}
135-
asset_name: ${{ env.PROJECT_RELEASE_PATH }}.zip
136-
asset_path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
137-
asset_content_type: application/zip
138133
if: github.event_name == 'release' && github.event.action == 'published'

.github/workflows/webassembly.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,17 @@ jobs:
7272
dir ${{ env.PROJECT_RELEASE_PATH }}
7373
7z a -tzip -r .\${{ env.PROJECT_RELEASE_PATH }}.zip .\${{ env.PROJECT_RELEASE_PATH }}\*
7474
shell: cmd
75-
76-
# Issue: Double zip: https://github.com/actions/upload-artifact/issues/39
75+
7776
- name: Upload Artifacts
7877
uses: actions/upload-artifact@v4
7978
with:
8079
name: ${{ env.PROJECT_RELEASE_PATH }}.zip
8180
path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
82-
83-
# Alternative: https://github.com/marketplace/actions/gh-release
81+
8482
- name: Upload Artifact to Release
85-
uses: actions/upload-release-asset@v1.0.1
83+
uses: softprops/action-gh-release@v1
84+
with:
85+
files: ${{ env.PROJECT_RELEASE_PATH }}.zip
8686
env:
8787
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88-
with:
89-
upload_url: ${{ github.event.release.upload_url }}
90-
asset_name: ${{ env.PROJECT_RELEASE_PATH }}.zip
91-
asset_path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
92-
asset_content_type: application/zip
9388
if: github.event_name == 'release' && github.event.action == 'published'

.github/workflows/windows.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
path: ${{ env.PROJECT_NAME }}
2727

2828
- name: Checkout raylib repo
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
repository: raysan5/raylib
3232
path: raylib
@@ -47,7 +47,7 @@ jobs:
4747

4848
# Setup MSBuild.exe path if required
4949
- name: Setup MSBuild path
50-
uses: microsoft/setup-msbuild@v1.1
50+
uses: microsoft/setup-msbuild@v2
5151

5252
- name: Build raylib Library + Product (VS2022 solution)
5353
run: |
@@ -67,21 +67,16 @@ jobs:
6767
7z a .\${{ env.PROJECT_RELEASE_PATH }}.zip .\${{ env.PROJECT_RELEASE_PATH }}
6868
shell: cmd
6969

70-
# Issue: Double zip: https://github.com/actions/upload-artifact/issues/39
7170
- name: Upload Artifacts
7271
uses: actions/upload-artifact@v4
7372
with:
7473
name: ${{ env.PROJECT_RELEASE_PATH }}.zip
7574
path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
76-
77-
# Alternative: https://github.com/marketplace/actions/gh-release
75+
7876
- name: Upload Artifact to Release
79-
uses: actions/upload-release-asset@v1.0.1
77+
uses: softprops/action-gh-release@v1
78+
with:
79+
files: ${{ env.PROJECT_RELEASE_PATH }}.zip
8080
env:
8181
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82-
with:
83-
upload_url: ${{ github.event.release.upload_url }}
84-
asset_name: ${{ env.PROJECT_RELEASE_PATH }}.zip
85-
asset_path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
86-
asset_content_type: application/zip
8782
if: github.event_name == 'release' && github.event.action == 'published'

0 commit comments

Comments
 (0)