Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Adds deployment test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix "xq" Queißner committed Feb 23, 2024
1 parent b32995d commit a63187e
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@ jobs:
- name: Render website
run: |
zig build
# - name: Deploy preview with SCP
# uses: horochx/[email protected]
# with:
# local: render/*
# remote: 'zeg-pr/${{ github.event.number }}/'
# ensureRemote: true
# user: generic-ci
# host: random-projects.net
# key: ${{ secrets.WEBSITE_PRIVATE_KEY }} #
- uses: mshick/add-pr-comment@v1
with:
message: |
Heya!
You can check out a preview of your PR at [staging.microzig.tech/pulls/${{ github.event.number }}](https://staging.microzig.tech/pulls/${{ github.event.number }}/)!
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens
allow-repeats: false # This is the default
- name: Deploy
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
ARGS: "-vzrli"
SOURCE: "microzig-deploy/"
REMOTE_HOST: ${{ secrets.DEPLOY_HOST }}
REMOTE_USER: ${{ secrets.DEPLOY_USER }}
REMOTE_PORT: ${{ secrets.DEPLOY_PORT }}
TARGET: "./staging"

- uses: mshick/add-pr-comment@v1
with:
message: |
Heya!
You can check out a preview of your PR at [staging.microzig.tech/pulls/${{ github.event.number }}](https://staging.microzig.tech/pulls/${{ github.event.number }}/)!
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens
allow-repeats: false # This is the default

0 comments on commit a63187e

Please sign in to comment.