build: update #486
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: Kernel Build and Release | |
on: | |
push: | |
branches: | |
- stable | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.event.repository.owner.id == github.event.repository.id | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up environment | |
run: | | |
bash build.sh c | |
env: | |
KERNELZIP: ${{ env.KERNELZIP }} | |
PAT: ${{ secrets.PAT }} | |
continue-on-error: true | |
- name: Upload Kernel Artifacts | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ env.KERNELZIP }} | |
tag_name: v1.0 # can be changed | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} # don't forget to set secret variable |