Skip to content

Headers

Headers #6

Workflow file for this run

name: Headers
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
package-headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node Version
uses: ./.github/actions/setup-version
- name: Download and package headers
run: |
sudo apt-get install -y zip
curl -sO https://nodejs.org/dist/${{ env.NODE_VERSION }}/node-${{ env.NODE_VERSION }}-headers.tar.gz
tar -xzf node-${{ env.NODE_VERSION }}-headers.tar.gz
mv node-${{ env.NODE_VERSION }}/include ./include
zip -r libnode-headers.zip include/
tar -czf libnode-headers.tar.gz include/
- name: Upload headers to release
uses: svenstaro/upload-release-action@v2
with:
overwrite: true
file_glob: true
file: libnode-headers.*
tag: ${{ env.NODE_VERSION }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
body: |
Changelog: https://github.com/nodejs/node/releases/tag/${{ env.NODE_VERSION }}