Repository navigation
Headers #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |