Skip to content

Commit

Permalink
Improved github action
Browse files Browse the repository at this point in the history
  • Loading branch information
didaquis committed Dec 11, 2020
1 parent 6412993 commit fc81c1a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/deploy-to-surge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ name: Node.js CI - Deploy to Surge.sh

on:
push:
branches: [ main ]
branches: [ master, main ]

jobs:
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Install node version 12
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Install node version 12
- uses: actions/setup-node@v2-beta
with:
node-version: '12'

# Install Surge
- name: Install Surge
run: npm install -g surge
# Install Surge
- name: Install Surge
run: npm install -g surge

# Deploy to the defined URL using the token
- name: Deploy to surge
run: surge . ${{secrets.URL_TO_DEPLOY}} --token ${{secrets.TOKEN}}
# Deploy to the defined URL using the token
- name: Deploy to surge
run: surge . ${{secrets.URL_TO_DEPLOY}} --token ${{secrets.TOKEN}}

0 comments on commit fc81c1a

Please sign in to comment.