Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit 7bef58f

Browse files
yunlonggao-megayunlonggao
and
yunlonggao
authored
use github secret (#25)
Co-authored-by: yunlonggao <[email protected]>
1 parent 88e8ae0 commit 7bef58f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: .github/workflows/ci_develop.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@ jobs:
6363
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
6464

6565
run: |
66-
NEXUS_URL="http://69.67.150.129:8081/repository/${{ steps.build_step.outputs.target }}"
67-
NEXUS_USER="admin"
68-
NEXUS_PASSWORD="mega@123"
66+
NEXUS_UPLOAD_URL="${{ secrets.NEXUS_URL }}/repository/${{ steps.build_step.outputs.target }}"
6967
ARTIFACT_NAME=${{ steps.set_artifact_name.outputs.ARTIFACT_NAME }}
7068
ARTIFACT_PATH="./${{ steps.build_step.outputs.target }}/bin/${{ steps.build_step.outputs.target }}"
71-
curl -u $NEXUS_USER:$NEXUS_PASSWORD \
72-
-X PUT "$NEXUS_URL/$ARTIFACT_NAME" \
69+
curl -u ${{ secrets.NEXUS_URL }}:${{ secrets.NEXUS_PWD }} \
70+
-X PUT "$NEXUS_UPLOAD_URL/$ARTIFACT_NAME" \
7371
-T $ARTIFACT_PATH \
7472
-H "Content-Type: application/octet-stream" \
7573
-v

0 commit comments

Comments
 (0)