mirror of
https://github.com/BreizhHardware/portfolio.git
synced 2026-01-18 16:37:22 +01:00
Update deployement status
This commit is contained in:
23
.github/workflows/deploy.yml
vendored
23
.github/workflows/deploy.yml
vendored
@@ -26,6 +26,15 @@ jobs:
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
- name: Create GitHub deployment
|
||||
id: create_deployment
|
||||
uses: octokit/request-action@v2.x
|
||||
with:
|
||||
route: POST /repos/${{ github.repository }}/deployments
|
||||
ref: ${{ github.sha }}
|
||||
environment: production
|
||||
required_contexts: []
|
||||
|
||||
- name: Copy build directory to server
|
||||
uses: Dylan700/sftp-upload-action@v1.2.3
|
||||
with:
|
||||
@@ -35,4 +44,16 @@ jobs:
|
||||
port: ${{ secrets.SERVER_PORT }}
|
||||
uploads: |
|
||||
./dist => /webroot/
|
||||
delete: true
|
||||
delete: true
|
||||
|
||||
- name: Update GitHub deployment status
|
||||
if: success()
|
||||
uses: octokit/request-action@v2.x
|
||||
with:
|
||||
route: POST /repos/${{ github.repository }}/deployments/${{ steps.create_deployment.outputs.data.id }}/statuses
|
||||
state: success
|
||||
environment: production
|
||||
environment_url: https://mrqt.fr
|
||||
log_url: https://mrqt.fr
|
||||
description: Deployment succeeded
|
||||
auto_inactive: true
|
||||
Reference in New Issue
Block a user