Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi authored Jul 10, 2024
1 parent a5f910a commit 6ce8270
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,27 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest

env:
MY_ENV_VAR: "some_value"

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'

- name: Install dependencies
run: npm install

- name: Build project
env:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
AIRTABLE_PEOPLE_BASE_ID: appk2btw36qEO3vFo
AIRTABLE_RESEARCH_BASE_ID: appTv9J1zxqaNgBHi
AIRTABLE_EVENTS_BASE_ID: tbl6CURONRn8ML6le
AIRTABLE_POSTS_BASE_ID: appsY0VXF7pbv3mKR
AIRTABLE_MITH_BASE_ID: appMWsw8HKjjokBg2
run: npm run build
# - name: Checkout code
# uses: actions/checkout@v3

# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '20.x'

# - name: Install dependencies
# run: npm install

# - name: Build project
# env:
# AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
# AIRTABLE_PEOPLE_BASE_ID: appk2btw36qEO3vFo
# AIRTABLE_RESEARCH_BASE_ID: appTv9J1zxqaNgBHi
# AIRTABLE_EVENTS_BASE_ID: tbl6CURONRn8ML6le
# AIRTABLE_POSTS_BASE_ID: appsY0VXF7pbv3mKR
# AIRTABLE_MITH_BASE_ID: appMWsw8HKjjokBg2
# run: npm run build

- name: Set SSH key and known hosts
uses: shimataro/ssh-key-action@v2
Expand All @@ -41,7 +38,8 @@ jobs:

- name: Deploy to server
run: |
rsync -avz --delete --quiet -e "ssh -o StrictHostKeyChecking=no" ./public/ $SSH_USER@$SSH_HOST:$SSH_REMOTE_PATH
echo $SSH_USER@$SSH_HOST:$SSH_REMOTE_PATH
rsync -avz --delete --quiet ./public/ $SSH_USER@$SSH_HOST:$SSH_REMOTE_PATH
- name: Clean up
run: |
Expand Down

0 comments on commit 6ce8270

Please sign in to comment.