Skip to content

Preview Deploy

Preview Deploy #13

name: Preview Deploy
on:
workflow_dispatch:
inputs:
commit_message:
description: 'Commit message for deployment'
required: true
default: 'Manual preview deployment'
jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v2
- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache
- name: creates output
run: sh ./build.sh
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_DEPLOY_ACTION }}
with:
source-directory: 'output'
destination-github-username: 'mina-gwak'
destination-repository-name: 'plus82.admin'
user-email: ${{ secrets.EMAIL }}
commit-message: ${{ github.event.inputs.commit_message }}
target-branch: development
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY