Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Feb 18, 2024
1 parent 286f6ed commit c308d6a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 41 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
path: ${{ env.PROJECT_NAME }}

- name: Checkout raylib repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: raysan5/raylib
path: raylib
Expand Down Expand Up @@ -66,21 +66,16 @@ jobs:
ls ${{ env.PROJECT_RELEASE_PATH }}
7z a ./${{ env.PROJECT_RELEASE_PATH }}.zip ./${{ env.PROJECT_RELEASE_PATH }}
# Issue: Double zip: https://github.com/actions/upload-artifact/issues/39
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_RELEASE_PATH }}.zip
path: ./${{ env.PROJECT_RELEASE_PATH }}.zip

# Alternative: https://github.com/marketplace/actions/gh-release

- name: Upload Artifact to Release
uses: actions/[email protected]
uses: softprops/action-gh-release@v1
with:
files: ${{ env.PROJECT_RELEASE_PATH }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_name: ${{ env.PROJECT_RELEASE_PATH }}.zip
asset_path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
asset_content_type: application/zip
if: github.event_name == 'release' && github.event.action == 'published'
15 changes: 5 additions & 10 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
path: ${{ env.PROJECT_NAME }}

- name: Checkout raylib repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: raysan5/raylib
path: raylib
Expand Down Expand Up @@ -118,21 +118,16 @@ jobs:
ls ${{ env.PROJECT_RELEASE_PATH }}
7z a ./${{ env.PROJECT_RELEASE_PATH }}.zip ./${{ env.PROJECT_RELEASE_PATH }}
# Issue: Double zip: https://github.com/actions/upload-artifact/issues/39
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_RELEASE_PATH }}.zip
path: ./${{ env.PROJECT_RELEASE_PATH }}.zip

# Alternative: https://github.com/marketplace/actions/gh-release

- name: Upload Artifact to Release
uses: actions/[email protected]
uses: softprops/action-gh-release@v1
with:
files: ${{ env.PROJECT_RELEASE_PATH }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_name: ${{ env.PROJECT_RELEASE_PATH }}.zip
asset_path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
asset_content_type: application/zip
if: github.event_name == 'release' && github.event.action == 'published'
15 changes: 5 additions & 10 deletions .github/workflows/webassembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,17 @@ jobs:
dir ${{ env.PROJECT_RELEASE_PATH }}
7z a -tzip -r .\${{ env.PROJECT_RELEASE_PATH }}.zip .\${{ env.PROJECT_RELEASE_PATH }}\*
shell: cmd

# Issue: Double zip: https://github.com/actions/upload-artifact/issues/39

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_RELEASE_PATH }}.zip
path: ./${{ env.PROJECT_RELEASE_PATH }}.zip

# Alternative: https://github.com/marketplace/actions/gh-release

- name: Upload Artifact to Release
uses: actions/[email protected]
uses: softprops/action-gh-release@v1
with:
files: ${{ env.PROJECT_RELEASE_PATH }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_name: ${{ env.PROJECT_RELEASE_PATH }}.zip
asset_path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
asset_content_type: application/zip
if: github.event_name == 'release' && github.event.action == 'published'
17 changes: 6 additions & 11 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
path: ${{ env.PROJECT_NAME }}

- name: Checkout raylib repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: raysan5/raylib
path: raylib
Expand All @@ -47,7 +47,7 @@ jobs:

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

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

# Issue: Double zip: https://github.com/actions/upload-artifact/issues/39
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_RELEASE_PATH }}.zip
path: ./${{ env.PROJECT_RELEASE_PATH }}.zip

# Alternative: https://github.com/marketplace/actions/gh-release

- name: Upload Artifact to Release
uses: actions/[email protected]
uses: softprops/action-gh-release@v1
with:
files: ${{ env.PROJECT_RELEASE_PATH }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_name: ${{ env.PROJECT_RELEASE_PATH }}.zip
asset_path: ./${{ env.PROJECT_RELEASE_PATH }}.zip
asset_content_type: application/zip
if: github.event_name == 'release' && github.event.action == 'published'

0 comments on commit c308d6a

Please sign in to comment.