Skip to content

Commit

Permalink
fix: update yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imransilvake committed Oct 19, 2020
1 parent 23f4c4d commit 00ff0a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/continuous_deployment_master.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Continuous Deployment

on:
repository_dispatch:
types: [semantic-release]
push:
branches:
- master

jobs:
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -25,6 +27,11 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-cache-node-modules-
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release

- name: Install Dependencies
if: steps.yarn-cache-node-modules.outputs.cache-hit != 'true'
run: yarn install
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/continuous_integration_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

jobs:
integrate:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -38,8 +38,3 @@ jobs:

- name: Lint SCSS
run: yarn lint:scss

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release

0 comments on commit 00ff0a5

Please sign in to comment.