Skip to content

feat: add workflow to automate release #8

feat: add workflow to automate release

feat: add workflow to automate release #8

Workflow file for this run

name: Release
on:
push:
branches: [automate-release]
# pull_request:
# branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: creates release
run: sh ./spec/release.s
- name: Put current date into a variable
run: |
$NOW=& Get-Date -format yyyyMMdd
echo "NOW=$NOW" >> $env:GITHUB_ENV
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: "spec/release"
destination-github-username: "wbcsd"
destination-repository-name: "tr"
user-email:
target-directory: ./temp/${{env.NOW}}
target-branch: automated-release-test
create-target-branch-if-needed: true