Skip to content

Merge pull request #63 from dont-code/upgrade #29

Merge pull request #63 from dont-code/upgrade

Merge pull request #63 from dont-code/upgrade #29

Workflow file for this run

name: Dont-code Website images update
on:
workflow_dispatch:
inputs:
branch:
description: Branch name to update from ?
required: true
type: string
push:
branches:
- main
paths:
- 'docs/**'
jobs:
build:
env:
branch: ${{ inputs.branch || github.head_ref || github.ref_name }}
ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ env.branch }}
token: ${{secrets.DONTCODE_ACTIONS_TOKEN}}
fetch-depth: 1
- name: Git config user
uses: snow-actions/git-config-user@v1.0.0
with:
name: Dont-code
email: developer@dont-code.net
- name: Update dont-code.net website from branch ${{env.branch}}
uses: wlixcc/SFTP-Deploy-Action@v1.2.6
with:
username: ${{secrets.DONTCODE_WEBSITE_USER}}
password: ${{secrets.DONTCODE_WEBSITE_PASSWORD}}
local_path: './docs/*'
remote_path: '/www/assets/images'
server: ${{secrets.DONTCODE_WEBSITE_HOST}}
port: ${{secrets.DONTCODE_WEBSITE_SSH_PORT}}
sftp_only: 'true'
delete_remote_files: 'false'