Skip to content

Commit e11736c

Browse files
committed
Edit workflow
1 parent 4f914db commit e11736c

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

docs/hypernode-deploy/getting-started/configure-ci-cd.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ jobs:
108108
timeout-minutes: 60
109109
# Here we use the latest Hypernode Deploy image with PHP 8.4 and Node.js 22
110110
container: quay.io/hypernode/deploy:latest-php8.4-node22
111-
outputs:
112-
safe_branch: ${{ steps.sanitize_branch.outputs.safe_branch }}
113111
steps:
114112
- uses: actions/checkout@v5
115113
- uses: actions/cache@v4
@@ -119,20 +117,13 @@ jobs:
119117
- uses: webfactory/ssh-agent@v0.9.1
120118
with:
121119
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
122-
- name: sanitize branch name
123-
id: sanitize_branch
124-
shell: bash
125-
run: |
126-
RAW="${GITHUB_REF_NAME}"
127-
SAFE="$(printf '%s' "$RAW" | sed -E 's/[^[:alnum:]._-]+/-/g; s/^-+//; s/-+$//')"
128-
echo "safe_branch=$SAFE" >> "$GITHUB_OUTPUT"
129120
- run: hypernode-deploy build -vvv
130121
env:
131122
DEPLOY_COMPOSER_AUTH: ${{ secrets.DEPLOY_COMPOSER_AUTH }}
132123
- name: archive production artifacts
133124
uses: actions/upload-artifact@v4
134125
with:
135-
name: deployment-build-${{ steps.sanitize_branch.outputs.safe_branch }}
126+
name: deployment-build
136127
path: build/build.tgz
137128
retention-days: 1
138129
```
@@ -158,7 +149,7 @@ jobs:
158149
- name: download build artifact
159150
uses: actions/download-artifact@v5
160151
with:
161-
name: deployment-build-${{ needs.build.outputs.safe_branch }}
152+
name: deployment-build
162153
path: build/
163154
- uses: webfactory/ssh-agent@v0.9.1
164155
with:

0 commit comments

Comments
 (0)