Merge branch 'development' #41
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: Deploy preview for a tag | |
on: | |
push: | |
branches: | |
- "!*" | |
tags: | |
- "v*" | |
jobs: | |
deploy-master: | |
name: deploy master branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get the tag name | |
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" | tr . '-' >> $GITHUB_ENV | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Package application | |
run: yarn dist | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
alias: ${{ env.TAG }} | |
publish-dir: "build" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |