Skip to content

Commit

Permalink
feat: add CI release
Browse files Browse the repository at this point in the history
  • Loading branch information
minzords committed Oct 14, 2024
1 parent 5df1101 commit ba8b736
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release workflow

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build project
run: |
cd /home/runner/work/splitdropdown/
rm -r splitdropdown/.git*
tar -zcvf splitdropdown-${{ github.ref_name }}.tgz splitdropdown
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: splitdropdown-${{ github.ref_name }}.tgz
path: /home/runner/work/splitdropdown/splitdropdown-${{ github.ref_name }}.tgz

- name: Create release
uses: softprops/action-gh-release@v2
with:
files: /home/runner/work/gdprcompliance/splitdropdown-${{ github.ref_name }}.tgz
body: "New release is available"
name: ${{ github.ref_name }}
draft: true
generate_release_notes: true

0 comments on commit ba8b736

Please sign in to comment.