Skip to content

Commit 91c0a3b

Browse files
committed
feat: add GitHub Release creation and skip native-deps-action for Windows ARM64
- Add GitHub Release creation using softprops/action-gh-release - Upload gem files as release assets with auto-generated release notes - Skip native-deps-action for arm64-mingw-ucrt (may not support ARM64 yet)
1 parent a7fabd7 commit 91c0a3b

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/gem-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
name: build-logs-${{ github.run_number }}-${{ matrix.platform }}
8484
path: tmp/*/ports/*/*/*.log
8585

86-
- if: matrix.platform != 'any' && !startsWith(matrix.platform, 'aarch64-')
86+
- if: matrix.platform != 'any' && !startsWith(matrix.platform, 'aarch64-') && matrix.platform != 'arm64-mingw-ucrt'
8787
uses: metanorma/metanorma-build-scripts/native-deps-action@main
8888
with:
8989
libname: archive

.github/workflows/metanorma.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ concurrency:
1313

1414
permissions:
1515
contents: read
16+
packages: write
1617

1718
env:
1819
BUNDLER_VER: latest

.github/workflows/release.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
uses: ./.github/workflows/gem-build.yml
6666

6767
release:
68-
name: Release to RubyGems
68+
name: Release to RubyGems and GitHub
6969
needs: build
7070
runs-on: ubuntu-latest
7171
steps:
@@ -77,6 +77,22 @@ jobs:
7777
pattern: '${{ github.run_number }}-*-pkg'
7878
merge-multiple: true
7979

80+
- name: Get version
81+
id: version
82+
run: |
83+
VERSION=$(ls pkg/*.gem | head -1 | sed 's/.*ffi-libarchive-binary-\(.*\)-.*/\1/')
84+
echo "version=$VERSION" >> $GITHUB_OUTPUT
85+
86+
- name: Create GitHub Release
87+
uses: softprops/action-gh-release@v2
88+
with:
89+
tag_name: v${{ steps.version.outputs.version }}
90+
name: Release v${{ steps.version.outputs.version }}
91+
generate_release_notes: true
92+
files: pkg/*.gem
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
8096
- name: Publish to rubygems.org
8197
env:
8298
RUBYGEMS_API_KEY: ${{secrets.FONTIST_CI_RUBYGEMS_API_KEY}}

0 commit comments

Comments
 (0)