Skip to content

Commit

Permalink
Fix worflows
Browse files Browse the repository at this point in the history
  • Loading branch information
daaru00 committed May 16, 2020
1 parent de8dda7 commit 5398a96
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 38 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/components.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Integration Tests

on:
push:
tags:
- '*'

jobs:
release:
name: Create GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Get version tag
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: Version ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false

component:
name: Deploy Serverless Component
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install Dependencies
run: npm install
- name: Publish Serverless Component
run: npm run publish
env:
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches:
- '*'
- '!master'

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion serverless.component.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: aws-ssm-document
version: 1.0.0
version: 1.1.0
author: daaru
org: daaru
description: Deploys an AWS System Manager Document
Expand Down

0 comments on commit 5398a96

Please sign in to comment.