Skip to content

Commit

Permalink
Set up auto deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneIRL committed Oct 10, 2023
1 parent e99017b commit 69dae8d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,18 @@ jobs:

- run: npm run lint

- name: Install Deploy SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.JANEIRL_SSH_DEPLOY_KEY }}
name: janeirl
config: ${{ secrets.JANEIRL_SSH_DEPLOY_CONFIG }}
if_key_exists: fail

- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.JANEIRL_SSH_DEPLOY_KEY }}
with:
source-directory: '.'
destination-github-username: JaneIRL
destination-repository-username: JaneIRL
destination-repository-name: 'hackuta2023-site'
user-email: [email protected]
target-branch: main
run: |
git remote add janeirl [email protected]:JaneIRL/hackuta2023-site.git
git push janeirl

0 comments on commit 69dae8d

Please sign in to comment.