cskwrd / quick-send-action

βš‘πŸ“‘ Quickly transfer deployments and/or files to a remote host automatically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typescript-action status

Need to run tests in production? Tired of finding your files here when you need them there? Fear not! The QuickSend GitHub Action sends your things when and where you need them, for FREE!

Quickstart

Place the following in a new workflow (ex: .github/workflows/quick-send-quickstart.yml):

name: 'πŸ“‘ Transfer Files'
on: push

jobs:
  quickstart:
    runs-on: ubuntu-latest

    steps:
      - name: '🚚 Clone project repository'
        uses: actions/checkout@v3

      - name: 'πŸ— Build project'
        run: |
          npm ci
          npm run build
    
      - name: 'πŸ“§ Quickly send files'
        uses: cskwrd/quick-send-action@v1
        with:
          protocol: 'smtps'
          remote-host: 'smtp.gmail.com'
          remote-port: 465
          username: ${{ secrets.smtp_username }}
          password: ${{ secrets.smtp_password }}
          smtp-from: ${{ secrets.smtp_username }}
          smtp-to: ${{ secrets.smtp_username }}
          files: |
            dist/**/*

Settings

Keys can be added directly to your .yml config file or referenced from your project Secrets storage.

To add a secret go to the Settings tab in your project then select Secrets. I strongly recommend you store your password as a secret.

Key Name Required Example Description
protocol Yes smtps At this time, the only valid values are smtp or smtps (most email providers prefer smtps)
remote-host Yes smtp.gmail.com SMTP server host name
remote-port Yes 465 The open port one the SMTP server
username No example@gmail.com The username to authenticate as (Leave both username and password blank to connect without authentication)
password No some-secret-password The password for the user above (Leave both username and password blank to connect without authentication)
smtp-from Yes example@gmail.com The email address to use as the FROM address
smtp-to Yes example@gmail.com The email address to use as the TO address
files Yes transporter-room/**/* List of patterns specifying files to include or exclude (More info on patterns)

About

βš‘πŸ“‘ Quickly transfer deployments and/or files to a remote host automatically

License:MIT License


Languages

Language:TypeScript 98.3%Language:JavaScript 1.7%