Skip to content

Commit

Permalink
feat: adds release workflow, improves deployment workflow ensuring it…
Browse files Browse the repository at this point in the history
… run only on main branch
  • Loading branch information
sarahcssiqueira committed Oct 2, 2024
1 parent 43db872 commit c59209d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy to DigitalOcean

on:
push:
branches:
- main
tags:
- '*'

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
branches:
- main
tags:
- v*

jobs:
release:
name: Create Release on Tag
runs-on: ubuntu-22.04
permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Create release
uses: ncipollo/release-action@v1
with:
body: "For changes in this release, see the changelog:"
generateReleaseNotes: true

0 comments on commit c59209d

Please sign in to comment.