fix: swift와 연결 #24
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: git push into another repo to deploy to vercel | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18" | |
- name: creates .env file | |
run: | | |
echo "${{ secrets.APPLICATION_ENV }}" | base64 --decode > .env | |
- name: Create output | |
run: sh ./build.sh | |
- name: Extract branch name | |
id: extract_branch | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
- name: Push to another repository | |
id: push_directory | |
uses: cpina/github-action-push-to-another-repository@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }} | |
with: | |
source-directory: "output" | |
destination-github-username: "urimeee" | |
destination-repository-name: "sohawgi_Front" | |
user-email: ${{ secrets.EMAIL }} | |
commit-message: | | |
${{ github.event.commits[0].message }} / ${{ github.run_id }} | |
target-branch: ${{ steps.extract_branch.outputs.branch }} | |
create-target-branch-if-needed: true | |
- name: Test get variable exported by push-to-another-repository | |
run: echo $DESTINATION_CLONED_DIRECTORY | |