feat: add workflow to automate release #10
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.sh | |
- name: Get Date | |
id: date | |
uses: Kaven-Universe/github-action-current-date-time@v1 | |
with: | |
format: "YYYYMMDD" | |
- 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/${{steps.date.outputs}} | |
target-branch: automated-release-test | |
create-target-branch-if-needed: true |