Skip to content

Commit

Permalink
💚 Combining tag and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Hand committed Apr 6, 2021
1 parent d995f67 commit 4b0fc25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 36 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Release Action

on:
push:
tags:
- v*
branches:
- master
- dev

jobs:
build:
Expand All @@ -25,20 +26,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Tag new version
id: tag
uses: clevyr/release-it-tagger-action@v24.4.1
- name: Download build
uses: actions/download-artifact@v2
with:
name: dist
- name: Get version
id: version
run: |
version_file="VERSION"
version=`cat "$version_file"`
echo ::set-output name=version::"$version"
- name: Create a GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v${{ steps.version.outputs.version }}"
release_name: "Release ${{ steps.version.outputs.version }}"
tag_name: "v${{ steps.tag.outputs.version }}"
release_name: "Release ${{ steps.tag.outputs.version }}"
26 changes: 0 additions & 26 deletions .github/workflows/tag.yml

This file was deleted.

0 comments on commit 4b0fc25

Please sign in to comment.