Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
javeoff committed Jul 31, 2024
1 parent ed5ba1e commit 9a2440b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ jobs:
EOF"
shell: bash

- name: Preprocess secret
id: preprocess_secret
run: echo "::set-output name=escaped_secret::${{ secrets.CF_API_KEY//$/$$ }}"

- name: add curseforge secret
run: |
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "echo 'CF_API_KEY=escaped_secret::${{ secrets.CF_API_KEY//$/$$ }}' >> ~/.env"
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "echo 'CF_API_KEY=${{ secrets.CF_API_KEY }}' >> ~/.env"
- name: Launch Docker Compose
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ~ && docker-compose up -d"
Expand Down

0 comments on commit 9a2440b

Please sign in to comment.