Skip to content

Commit

Permalink
feat(ci): Added Publish Release on GitHub step (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
matallo authored Sep 12, 2019
1 parent c900007 commit 994f2f2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
39 changes: 26 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ jobs:
environment:
CHROME_BIN: "/usr/bin/google-chrome"
environment:
- NODE_ENV: production
NODE_ENV: production
steps:
- checkout
- run:
name: Set cache variable
command: date '+%Y-%m-%d' > ~/DATE
- restore_cache:
key: v1-bundle-{{ checksum "Gemfile.lock" }}
- restore_cache:
Expand All @@ -25,7 +22,7 @@ jobs:
gem install bundler
sudo yarn global add gulp-cli
bundle install --path vendor/bundle
yarn install
yarn install --no-lockfile
- run:
name: Run linter
command: yarn run lint
Expand All @@ -49,20 +46,30 @@ jobs:
key: v1-yarn-{{ checksum "yarn.lock" }}
paths:
- ~/matall.in/node_modules
- save_cache:
key: v1-assets-{{ .Environment.CIRCLE_SHA1 }}-{{ checksum "~/DATE" }}
- persist_to_workspace:
root: .
paths:
- ~/matall.in/dist
- '*'
release:
<<: *defaults
docker:
- image: circleci/node:latest
steps:
- attach_workspace:
at: .
- run:
name: Install dependencies
command: sudo yarn global add gh-release
- run:
name: Publish Release on GitHub
command: gh-release -y
deploy:
<<: *defaults
machine:
enabled: true
steps:
- run:
name: Set cache variable
command: date '+%Y-%m-%d' > ~/DATE
- restore_cache:
key: v1-assets-{{ .Environment.CIRCLE_SHA1 }}-{{ checksum "~/DATE" }}
- attach_workspace:
at: .
- run:
name: Deploy to S3
command: |
Expand All @@ -81,3 +88,9 @@ workflows:
- deploy:
requires:
- build_and_test
- release:
requires:
- deploy
filters:
branches:
only: master
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.0] - 2019-09-12
### Features
- Added CHANGELOG.md.
- Added Publish Release on GitHub step.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matall.in",
"version": "2.0.0",
"version": "3.0.0",
"description": "Personal website of Carlos Matallín",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 994f2f2

Please sign in to comment.