Skip to content

Commit

Permalink
feat: Auto release
Browse files Browse the repository at this point in the history
Signed-off-by: Binyamin Yawitz <316103+byawitz@users.noreply.github.com>
  • Loading branch information
byawitz committed Apr 2, 2024
1 parent 205e831 commit 10a2f89
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: release

permissions:
contents: write

on:
release:
types: [ published ]
push:
tags:
- 'v*'

jobs:
release:
Expand Down Expand Up @@ -44,4 +48,35 @@ jobs:
VERSION=${{ steps.meta.outputs.version }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

create-release:
name: Create release
runs-on: ubuntu-latest
needs: release
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: create release
run: gh release create ${{ github.ref_name }} -R $REPO -d --generate-notes
- name: Set new version
run: |
VVER=${{ github.ref_name }}
VER="${VVER//v/}"
sed -i'' -e "s#CURRENT_LINKOS_VERSION#$VER#g" docker-compose.yml
- name: upload
run: gh release upload v0000 -R ${{ github.ref_name }} docker-compose.yml
- name: create release
run: ls

release-notes:
runs-on: ubuntu-latest
needs: create-release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 10a2f89

Please sign in to comment.