Skip to content

Commit

Permalink
.github: set build variables, like RELEASE, in prior build step
Browse files Browse the repository at this point in the history
  • Loading branch information
troglobit committed Jul 14, 2021
1 parent 4832c72 commit 370f704
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
tags:
- '[0-9]*.*'

env:
RELEASE: ${GITHUB_REF#refs/tags/}

jobs:
release:
name: Create GitHub release
Expand Down Expand Up @@ -47,7 +44,13 @@ jobs:
dl-${{ matrix.platform }}-${{ matrix.demo }}-
dl-${{ matrix.platform }}-
dl-
- name: Set Build Variables
id: vars
run: |
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- name: Configure & Build
env:
RELEASE: ${{ steps.vars.outputs.tag }}
run: |
make ${{ matrix.demo }}_${{ matrix.platform }}_defconfig
make
Expand Down

0 comments on commit 370f704

Please sign in to comment.