Merge pull request #2 from traPtitech/feat-emoji #14
Workflow file for this run
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: | |
tags: | |
- v*.*.* | |
branches-ignore: | |
- '**' | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set TAG_NAME env | |
run: echo "TAG_NAME=${GITHUB_REF:11}" >> $GITHUB_ENV | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: clasp install | |
run: sudo npm i -g @google/clasp | |
- name: genarate .clasprc.json | |
run: echo ${CLASPRC} > ~/.clasprc.json | |
env: | |
CLASPRC: ${{ secrets.CLASPRC }} | |
- name: push | |
run: clasp push --force | |
- name: deploy | |
run: clasp deploy --description "${TAG_NAME}" | |
- name: deploy-latest | |
run: clasp deploy --description "latest" --deploymentId AKfycbw2xqqmRUQXcvqzGhxqsrLaOn7mvqQiDohO4Gsdna9BCduIP87X0bT2bQp6Gp6oa-7B |