Skip to content

Commit

Permalink
chore: publish artifacts on github release (#369)
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Belanger <[email protected]>
  • Loading branch information
gruyaume authored Jan 15, 2025
1 parent 1f62a73 commit 72fbdac
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Main workflow
permissions:
contents: read
packages: write
security-events: write

on:
pull_request:
Expand All @@ -27,24 +26,6 @@ jobs:
rock-build:
needs: [go-unit-test, go-vet, go-lint]
uses: ./.github/workflows/rock-build.yaml
rock-scan:
if: github.ref_name == 'main'
needs: [rock-build]
uses: ./.github/workflows/rock-scan.yaml
integration-tests:
needs: [go-unit-test, go-vet, go-lint, rock-build]
uses: ./.github/workflows/integration-tests.yaml
rock-publish:
if: github.ref_name == 'main'
needs: [rock-build]
uses: ./.github/workflows/rock-publish.yaml
secrets: inherit
snap-build:
if: github.ref_name == 'main'
needs: [go-unit-test, go-vet, go-lint]
uses: ./.github/workflows/snap-build.yaml
# snap-publish:
# if: github.ref_name == 'main'
# needs: [snap-build]
# uses: ./.github/workflows/snap-publish.yaml
# secrets: inherit
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release workflow

permissions:
contents: read
packages: write
security-events: write

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

jobs:
rock-build:
uses: ./.github/workflows/rock-build.yaml
rock-scan:
needs: [rock-build]
uses: ./.github/workflows/rock-scan.yaml
rock-publish:
needs: [rock-build]
uses: ./.github/workflows/rock-publish.yaml
secrets: inherit
snap-build:
uses: ./.github/workflows/snap-build.yaml
snap-publish:
needs: [snap-build]
uses: ./.github/workflows/snap-publish.yaml
secrets: inherit

0 comments on commit 72fbdac

Please sign in to comment.