Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #63

Merged
merged 11 commits into from
Mar 26, 2024
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,8 @@ jobs:
- name: Build executable for release
env:
PRODUCT_NAME: ${{ secrets.PRODUCT_NAME }}
run: swift build -c release --arch arm64 --arch x86_64 --product ${{secrets.PRODUCT_NAME }}
- name: Compress archive
run: tar -czf ${{ github.ref_name }}.tar.gz -C
.build/apple/Products/Release ${{secrets.PRODUCT_NAME}}.swiftmodule
- name: Create Tag
run: swift build -c release --arch arm64 --arch x86_64 --product ${{ secrets.PRODUCT_NAME }}
- name: Create Tag And Zip File
if: success() && github.event.pull_request.user.login == github.repository_owner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -189,6 +186,10 @@ jobs:
# Increment the version number
incremented_version=$(echo $version | awk -F. -v OFS=. '{$NF++; print}')

# Create a tarball of the built product
tar -czf v$(echo {incremented_version}).tar.gz -C
.build/apple/Products/Release ${{secrets.PRODUCT_NAME}}.swiftmodule

# Create a new tag with the incremented version number
gh release create v$incremented_version --title "Release v$incremented_version" --notes "Release v$incremented_version" --prerelease '${{ github.ref_name }}.tar.gz'

Loading