Skip to content

Commit 41871d7

Browse files
committed
Move configuration env mapping to top of workflow
The "Release" GitHub Actions workflow is based on a standardized "template" which is designed to be reusable in any relevant project. Some project-specific configuration of the the workflow must be done. These are done via workflow environment variables. It will be most convenient to place the `env` mapping were these variables are defined at the top of the workflow to make them easily accessible to the project maintainer.
1 parent d70b760 commit 41871d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release-go-crosscompile-task.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/release-go-crosscompile-task.md
22
name: Release
33

4-
on:
5-
push:
6-
tags:
7-
- "[0-9]+.[0-9]+.[0-9]+*"
8-
94
env:
105
# As defined by the Taskfile's PROJECT_NAME variable
116
PROJECT_NAME: arduinoOTA
@@ -15,6 +10,11 @@ env:
1510
AWS_PLUGIN_TARGET: /arduinoOTA/
1611
ARTIFACT_PREFIX: dist-
1712

13+
on:
14+
push:
15+
tags:
16+
- "[0-9]+.[0-9]+.[0-9]+*"
17+
1818
jobs:
1919
create-release-artifacts:
2020
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)