-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added p2 repository deployment repo to GitHub actions.
- Loading branch information
1 parent
b906b4c
commit 7695b01
Showing
1 changed file
with
27 additions
and
0 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 |
---|---|---|
|
@@ -44,4 +44,31 @@ jobs: | |
file: "sleec-product/target/products/*.tar.gz;sleec-product/target/products/*.zip" | ||
tags: true | ||
draft: true | ||
|
||
- name: Setup SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Add SSH known hosts | ||
run: echo "${ROBOSTAR_WEB_HOST} ${ROBOSTAR_WEB_SSH_FINGERPRINT_TYPE} ${ROBOSTAR_WEB_SSH_FINGERPRINT}" >> /root/.ssh/known_hosts | ||
env: | ||
ROBOSTAR_WEB_HOST: ${{ secrets.ROBOSTAR_WEB_HOST }} | ||
ROBOSTAR_WEB_SSH_FINGERPRINT: ${{ secrets.ROBOSTAR_WEB_SSH_FINGERPRINT }} | ||
ROBOSTAR_WEB_SSH_FINGERPRINT_TYPE: ${{ secrets.ROBOSTAR_WEB_SSH_FINGERPRINT_TYPE }} | ||
|
||
- id: deploy | ||
name: Deploy | ||
uses: UoY-RoboStar/ga-eclipse-deploy@master | ||
with: | ||
remote-host: ${{ secrets.ROBOSTAR_WEB_HOST }} | ||
remote-user: ${{ secrets.ROBOSTAR_WEB_USER }} | ||
remote-root: ${{ secrets.ROBOSTAR_WEB_ROOT }} | ||
remote-baseurl: 'https://robostar.cs.york.ac.uk' | ||
remote-relative-path: 'robotool/sleec-core/' | ||
maven-target: 'sleec-core/circus.robocalc.sleec.repository/target/repository/' | ||
|
||
- name: Create commit comment | ||
uses: peter-evans/commit-comment@v1 | ||
with: | ||
body: 'Successfully deployed at: https://robostar.cs.york.ac.uk/robotool/sleec-core/${{ steps.deploy.outputs.dest }}' |