Skip to content

as an argument?

as an argument? #20

Workflow file for this run

name: Autopublisher
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
publishing_job:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Git to Staging Repo
run: |
$GITHUB_WORKSPACE/publisher/auto_git2staging.sh ${{ env.PUBLISHER_ENVIRONMENT}}
env:
PUBLISHER_ENVIRONMENT: ${{ env.PUBLISHER_ENVIRONMENT }}
- name: Staging to Prod Repo
run: |
$GITHUB_WORKSPACE/publisher/auto_staging2prod.sh
env:
PUBLISHER_ENVIRONMENT: $PUBLISHER_ENVIRONMENT
- name: Cleanup Staging Repo
run: |
$GITHUB_WORKSPACE/publisher/auto_stagingcleanup.sh
env:
PUBLISHER_ENVIRONMENT: "${{ env.PUBLISHER_ENVIRONMENT }}"