Skip to content

Commit

Permalink
Try upload js files into cdn using gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Aug 10, 2021
1 parent b2e40c7 commit 809e474
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/jsdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ jobs:
clean: false
- name: Install SSH key
run: |
mkdir ~/.ssh
chmod 700 ~/.ssh
echo "${{ secrets.CDN_AT_DOBISEL }}" > ~/.ssh/cdn_id_rsa
echo "${{ secrets.DOBISEL_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
chmod 600 ~/.ssh/cdn_id_rsa
- name: Deploy to Javascript files to CDN
run: scp -v -i ~/.ssh/cdn_id_rsa -P ${{ secrets.DOBISEL_PORT }} build/jsdist/adia.lib.js cdn@${{ secrets.DOBISEL_ADDR }}:/var/www/cdn1/adia
Expand Down

0 comments on commit 809e474

Please sign in to comment.