Skip to content

Commit

Permalink
Setup automatic deploy to algoritmia.escom.ipn.mx
Browse files Browse the repository at this point in the history
  • Loading branch information
equetzal committed Aug 1, 2023
1 parent 93c0c6e commit 5879844
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy main to algoritmia.escom.ipn.mx
on:
workflow_dispatch:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
name: Deploy to huronOS webserver
runs-on: ubuntu-latest
steps:
#- name: 📡 Get latest code
# uses: actions/checkout@v3

#- name: 🍔 Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: yarn

#- name: 🦕 Install Docusaurus
# run: yarn install --frozen-lockfile

#- name: 🧹 Delete TODO Files
# run: |
# chmod +x ./.github/scripts/quit-todo.sh
# ./.github/scripts/quit-todo.sh

# - name: Update version
# run: yarn docusaurus docs:version ${{ github.event.head_commit.message }}

#- uses: stefanzweifel/git-auto-commit-action@v4

#- name: 🛠️ Build website
# run: yarn build

- name: 🪁 Deploy
uses: wlixcc/[email protected]
with:
server: ${{ secrets.PROD_HOST }}
port: ${{ secrets.PROD_HOST_SSH_PORT }}
username: ${{ secrets.PROD_SSH_USERNAME }}
password: ${{ secrets.PROD_SSH_PASSWORD }}
# local_path: './build/*'
local_path: './*'
remote_path: ${{ secrets.PROD_DEPLOY_PATH }}
delete_remote_files: true
sftp_only: false

0 comments on commit 5879844

Please sign in to comment.