Skip to content

Commit

Permalink
feat(cd): GitHub action for automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
TasoOneAsia committed Apr 29, 2021
1 parent 3cc943b commit c0130bb
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/stable_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "Create Stable Release"

on:
push:
tags:
- "v*"
branches:
- "UPD"
jobs:
create_tagged_release:
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install zip for creating archive
run: |
sudo apt-get update
sudo apt-get install zip
- name: Create Archive,
run: |
zip -r t-notify.zip . -x ".git/*" ".github/*" "docs/*" ".gitignore"
- name: Create Changelog
uses: Bullrich/generate-release-changelog@master
id: create_changelog
env:
REPO: ${{ github.repository }}
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "t-notify.zip"
body: |
${{ steps.create_changelog.outputs.changelog }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c0130bb

Please sign in to comment.