Skip to content

Commit 4cb391d

Browse files
authored
Merge pull request #31 from codeboxrcodehub/dev
workflow updated
2 parents 07a78ca + 05b36e2 commit 4cb391d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
tags:
66
- '*.*.*'
77
branches:
8-
- master # Restrict tags to master branch
8+
- master
99

1010
jobs:
1111
create_release:
12-
if: github.ref == 'refs/heads/master' # Ensure the job only runs for master
12+
if: github.ref == 'refs/heads/master'
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
@@ -26,6 +26,10 @@ jobs:
2626
break
2727
fi
2828
done
29+
30+
# Ensure the variable is available within the current step
31+
source $GITHUB_ENV
32+
2933
if [ -z "$readme_file" ]; then
3034
echo "::error::Readme file not found."
3135
exit 1
@@ -71,6 +75,9 @@ jobs:
7175
zip -r ${REPO_NAME}.zip . -x '*.git*' -x '.github/*' -x '*.distignore*' -x 'CHANGELOG.txt'
7276
echo "repo_name=${REPO_NAME}" >> $GITHUB_ENV
7377
78+
# Source to make repo_name available in subsequent steps
79+
source $GITHUB_ENV
80+
7481
- name: Create Release
7582
id: create_release
7683
uses: actions/create-release@v1

0 commit comments

Comments
 (0)