Skip to content

Commit

Permalink
ci(backend): release can be made manually
Browse files Browse the repository at this point in the history
  • Loading branch information
szattila98 committed Feb 27, 2024
1 parent 26ce274 commit 8a32419
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Conventional commits

on:
push:
branches: ["main"]
branches: ["main", "ci"]
pull_request:
branches: ["**"]
types: [opened, synchronize]
workflow_dispatch:

jobs:
check:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish
on:
push:
branches:
- main
- ci # main
tags:
- "*"

Expand All @@ -27,7 +27,7 @@ jobs:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
platform: [macos-latest, windows-latest] # ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -60,20 +60,19 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: artifact-${{ matrix.platform }}
name: artifact
path: src-tauri/target/release/bundle
retention-days: 7

upload_to_release:
needs: [build, upload_license]
name: Publish binaries
runs-on: ubuntu-latest
if: ${{ github.ref_type == 'tag' }}
# if: ${{ github.ref_type == 'tag' }}
steps:
- uses: actions/download-artifact@v3
with:
path: ~/artifacts
merge-multiple: true

- name: Copy artifacts to archive
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
branches: ["main"]
branches: ["main", "ci"]
workflow_dispatch:

permissions:
Expand Down
2 changes: 1 addition & 1 deletion cog.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ignore_merge_commits = true
branch_whitelist = ["main"]
branch_whitelist = ["main", "ci"]
pre_bump_hooks = ["yarn install --immutable", "yarn version {{version}}"]
post_bump_hooks = ["git push", "git push origin --tags"]

Expand Down

0 comments on commit 8a32419

Please sign in to comment.