Skip to content

Commit

Permalink
add release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lacraig2 committed Mar 12, 2024
1 parent 1a4b028 commit a8e886c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ on:
push:
branches:
- master
- stable

jobs:
build:
runs-on: panda-arc

steps:
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
use_api: true

- name: Checkout code
uses: actions/checkout@v4

Expand All @@ -23,7 +30,7 @@ jobs:
name: libnvram-latest.tar.gz
path: libnvram-latest.tar.gz

- name: Create release
- name: Create stable release
id: create_release
uses: actions/create-release@v1
env:
Expand All @@ -35,6 +42,19 @@ jobs:
Release @${{ github.ref }}
draft: true
prerelease: false
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.v-version }}${{ github.ref == 'refs/head/stable' && '-stable' || '' }}
release_name: Release ${{ steps.version.outputs.v-version }} ${{ github.ref }}
body: |
Release ${{ steps.version.outputs.v-version }} @${{ github.ref }}
draft: true
prerelease: false

- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
Expand All @@ -44,6 +64,7 @@ jobs:
asset_path: ./libnvram-latest.tar.gz
asset_name: libnvram-latest.tar.gz
asset_content_type: application/gzip

- name: Publish release
uses: StuYarrow/[email protected]
env:
Expand Down

0 comments on commit a8e886c

Please sign in to comment.