From 41871d7c3e9651c269847f246575bfe5e00e59d4 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 1 Jun 2025 23:45:13 -0700 Subject: [PATCH] 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. --- .github/workflows/release-go-crosscompile-task.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-go-crosscompile-task.yml b/.github/workflows/release-go-crosscompile-task.yml index 5101fbd..9db3b70 100644 --- a/.github/workflows/release-go-crosscompile-task.yml +++ b/.github/workflows/release-go-crosscompile-task.yml @@ -1,11 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/release-go-crosscompile-task.md name: Release -on: - push: - tags: - - "[0-9]+.[0-9]+.[0-9]+*" - env: # As defined by the Taskfile's PROJECT_NAME variable PROJECT_NAME: arduinoOTA @@ -15,6 +10,11 @@ env: AWS_PLUGIN_TARGET: /arduinoOTA/ ARTIFACT_PREFIX: dist- +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+*" + jobs: create-release-artifacts: runs-on: ubuntu-latest