feat: add workflow to automate release #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |