Merge pull request #9 from petm5/dev #32
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: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
release: | |
if: github.ref_name == 'main' | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: nixlet-unsigned | |
- name: Sign for Secure Boot | |
env: | |
DB_KEY: ${{ secrets.DBKEY }} | |
DB_CRT: ${{ secrets.DBCRT }} | |
run: ./scripts/sign-release.sh | |
- name: Download insecure artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: nixlet-insecure-unsigned | |
- name: Generate release bundle | |
run: ./scripts/pack-release.sh | |
- name: Release | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: "release/*" |