Skip to content

Commit

Permalink
set up releases
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Aug 27, 2024
1 parent 7723415 commit e8f5c3d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Deploy and Release

on:
pull_request:
Expand All @@ -13,7 +13,7 @@ on:
default: 'main'

jobs:
deploy:
deploy_and_release:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
Expand Down Expand Up @@ -66,3 +66,17 @@ jobs:
# Remove unused images and containers
docker system prune -af
- name: Get current date
id: date
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release-${{ steps.date.outputs.DATE }}
release_name: Release ${{ steps.date.outputs.DATE }}
draft: false
prerelease: false
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0

0 comments on commit e8f5c3d

Please sign in to comment.