fix : go 버전 표기 오류 #8
This file contains hidden or 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: Deploy File Upload Service | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy Function | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Google Cloud authentication | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Setup Cloud SDK | |
uses: google-github-actions/setup-gcloud@v2 | |
with: | |
project_id: ${{ secrets.GCP_PROJECT_ID }} | |
export_default_credentials: true | |
- name: Enable Cloud Resource Manager API | |
run: | | |
gcloud services enable cloudresourcemanager.googleapis.com | |
- name: Enable Cloud Run API | |
run: | | |
gcloud services enable run.googleapis.com | |
- name: Deploy to Google Cloud Functions | |
working-directory: file-upload | |
run: | | |
gcloud functions deploy HelloWorld \ | |
--entry-point HelloWorld \ | |
--runtime go120 \ | |
--trigger-http \ | |
--allow-unauthenticated |