Skip to content

Commit

Permalink
feat: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Dec 21, 2023
1 parent d9ef9a2 commit 5545dd4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,28 @@ jobs:
name: app.apk
path: app.apk

upload:
release:
needs: [build-server, build-app]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: 📦 - Copy server artifacts
uses: actions/download-artifact@v4
with:
path: .
path: artifacts/
merge-multiple: true

- name: 🧐 - Display structure of downloaded artifacts
run: ls -R
run: ls -R artifacts/

- name: 🌠 - Release
uses: ncipollo/release-action@v1.12.0
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
artifacts: "server-*,app.apk"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
removeArtifacts: true
artifactErrorsFailBuild: true
prerelease: true
name: Latest Pre-release
tag: latest
branches: |
[
'main',
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
"assets": [
{ "path": "artifacts/server-*" },
{ "path": "artifacts/app.apk" }
]
}
]
]
}

0 comments on commit 5545dd4

Please sign in to comment.