Merge pull request #3 from Firgrep/main #6
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: CI/CD to Google App Engine | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set Up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: 'Create env file' | |
run: | | |
echo "${{ secrets.ENV_STAGING }}" > .env | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Auth | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' | |
- name: Deploy | |
uses: 'google-github-actions/deploy-appengine@v1' | |
with: | |
working_directory: ./out |