Skip to content

Commit

Permalink
chore: Update workflow to deploy production artifacts using FTP
Browse files Browse the repository at this point in the history
  • Loading branch information
talaman committed May 25, 2024
1 parent 00d4e91 commit 0293dbb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,30 @@ jobs:
run: ls -R dist


- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
local-dir: dist/
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}

deploy-prod:
name: πŸš€ Deploy prod
environment: prod
needs: deploy-dev
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code from artifact dist
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Display structure of downloaded files
run: ls -R dist


- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
Expand Down

0 comments on commit 0293dbb

Please sign in to comment.