Skip to content

Commit

Permalink
updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlin committed Jan 8, 2024
1 parent b144e75 commit daa7fd7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build and Release
name: Build and Publish

on:
push:
tags:
- '*'

jobs:
build-and-release:
build-and-publish:
runs-on: ubuntu-latest

steps:
Expand All @@ -26,16 +26,13 @@ jobs:
- name: Run Tests
run: npm test

- name: Upload Dist as Artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/
- name: Create Tarball
run: tar -czvf serverless-openapi-typescript.tgz dist

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: dist/**
files: serverless-openapi-typescript.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit daa7fd7

Please sign in to comment.