compose and use "dynamic" names for the assets to be released; sync "actions.yml" with "nightly.yaml"; formatting (#100)

This commit is contained in:
Tom Hensel
2021-05-28 10:26:38 +02:00
committed by GitHub
parent 67760354b8
commit 8d86907120
2 changed files with 29 additions and 46 deletions
+10 -21
View File
@@ -4,27 +4,14 @@ on:
push:
branches:
- '2.4'
- 'nightly_filenames'
pull_request:
branches:
- '2.4'
jobs:
metadata:
name: Store metadata
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Package common files
uses: 'actions/upload-artifact@v2'
with:
name: edgetx-firmware-nightly
path: |
fw.json
LICENSE
README.md
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
@@ -52,9 +39,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: recursive
# - name: Fetch tags
# run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
# fetch-depth: 0 # https://github.com/actions/checkout#Fetch-all-history-for-all-tags-and-branches
- name: Test ${{ matrix.target }}
env:
@@ -71,12 +56,16 @@ jobs:
./tools/build-gh.sh
- name: Compose release filename
run: echo "artifact_name=edgetx-firmware-${GITHUB_REF}" >> $GITHUB_ENV
# https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
run: echo "artifact_name=edgetx-firmware-${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Package firmware ${{ matrix.target }}
uses: 'actions/upload-artifact@v2'
with:
name: "$${ env.artifact_name }}"
path: "${{ github.workspace }}/*.bin"
name: "${{ env.artifact_name }}"
path: |
fw.json
LICENSE
*.bin
retention-days: 15
if-no-files-found: error