Skip to content

Commit

Permalink
Package for craft
Browse files Browse the repository at this point in the history
  • Loading branch information
limbonaut committed Dec 13, 2024
1 parent d1cfbc8 commit a5231b6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "main"
- "release/**"
paths-ignore:
- "*.md"

Expand All @@ -25,3 +26,8 @@ jobs:
name: 🧪 Unit tests
needs: build-extension
uses: ./.github/workflows/unit_tests.yml

package:
name: 📦 Package
needs: build-extension
uses: ./.github/workflows/package.yml
36 changes: 36 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 📦 Package

on:
workflow_call:

jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: sentry-godot-gdextension
path: artifact/

- name: Prepare artifact
shell: bash
run: |
# * Fix crashpad_handler permissions, workaround for https://github.com/actions/upload-artifact/issues/38
chmod +x artifact/addons/sentrysdk/bin/{linux,macos}/crashpad_handler
# * Create release archive
version=$(grep 'VERSION =' SConstruct | cut -d '"' -f 2)
git_short_sha=$(git rev-parse --short HEAD)
archive_file="sentry-godot-gdextension-${version}+${git_short_sha}.zip"
cd artifact/
mkdir ${GITHUB_WORKSPACE}/out/
zip -r ${GITHUB_WORKSPACE}/out/${archive_file} ./*
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{github.sha}}
path: out/*

0 comments on commit a5231b6

Please sign in to comment.