This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |