remove release step
This commit is contained in:
parent
3bdd5852f1
commit
3ab8ff404f
1 changed files with 0 additions and 37 deletions
37
.github/workflows/build.yml
vendored
37
.github/workflows/build.yml
vendored
|
|
@ -3,40 +3,3 @@ on: [push, pull_request, workflow_dispatch]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
|
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
|
||||||
|
|
||||||
release:
|
|
||||||
needs: build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Get the latest commit message
|
|
||||||
id: get_commit
|
|
||||||
run: echo "::set-output name=message::$(git log -1 --pretty=%B)"
|
|
||||||
|
|
||||||
- name: Download firmware artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware
|
|
||||||
path: ./firmware.zip
|
|
||||||
|
|
||||||
- name: Create GitHub Release
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.sha }}
|
|
||||||
release_name: ${{ steps.get_commit.outputs.message }}
|
|
||||||
body: |
|
|
||||||
Release created for commit ${{ github.sha }}.
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- name: Upload Firmware to Release
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./firmware
|
|
||||||
asset_name: firmware.zip
|
|
||||||
asset_content_type: application/zip
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue