fix: mispelled workfows folder #1
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: Deploy Google Apps Script | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
- name: Install clasp | ||
run: npm install -g @google/clasp | ||
- name: Authenticate clasp | ||
run: | | ||
echo '${{ secrets.CLASPRC_JSON }}' > ~/.clasprc.json | ||
- name: Set Script ID | ||
run: | | ||
if [ ! -z "${{ secrets.SCRIPT_ID }}" ]; then | ||
sed -i 's/"scriptId": *"[^"]*"/"scriptId": "${{ secrets.SCRIPT_ID }}"/' .clasp.json | ||
fi | ||
- name: Push script | ||
run: clasp push -f | ||
- name: Deploy script | ||
if: github.ref == 'refs/heads/main' && secrets.DEPLOYMENT_ID | ||
Check failure on line 36 in .github/workflows/deploy.yml GitHub Actions / Deploy Google Apps ScriptInvalid workflow file
|
||
run: clasp deploy -i ${{ secrets.DEPLOYMENT_ID }} -d "GitHub Actions Deployment" | ||
- name: Update CLASPRC_JSON secret | ||
env: | ||
GH_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
run: | | ||
NEW_CLASPRC=$(cat ~/.clasprc.json) | ||
gh secret set CLASPRC_JSON -b"$NEW_CLASPRC" |