Skip to content

Commit

Permalink
#9 Commented out some lines that could cause noise & made the release…
Browse files Browse the repository at this point in the history
… workflow be dependant on the lint & vuln workflows
  • Loading branch information
roma-glushko committed Jan 18, 2024
1 parent 6b46a3a commit 338df18
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 21 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: release

on:
workflow_run:
workflows:
- lint
- security
# TODO: uncomment the lines below after tests
# branches:
# - main
types:
- completed
push:
tags:
- '*'
branches:
- main
# TODO: uncomment the lines below after tests
# branches:
# - main

permissions:
contents: write
packages: write

jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Set up Go
Expand Down
39 changes: 20 additions & 19 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,22 +135,23 @@ release:
# Templates: allowed (since v1.15)
disable: true

announce:
discord:
# Whether its enabled or not.
enabled: true

# Message template to use while publishing.
#
# Templates: allowed
message_template: '📦 Glide {{.Tag}} is out! Check it out at {{ .ReleaseURL }}'

# Set author of the embed.
author: 'EinStack'

# Color code of the embed. You have to use decimal numeral system, not hexadecimal.
# Default: '3888754' (the grey-ish from GoReleaser)
color: ''

# URL to an image to use as the icon for the embed.
icon_url: ''
# TODO: uncomment the lines below after tests
#announce:
# discord:
# # Whether its enabled or not.
# enabled: true
#
# # Message template to use while publishing.
# #
# # Templates: allowed
# message_template: '📦 Glide {{.Tag}} is out! Check it out at {{ .ReleaseURL }}'
#
# # Set author of the embed.
# author: 'EinStack'
#
# # Color code of the embed. You have to use decimal numeral system, not hexadecimal.
# # Default: '3888754' (the grey-ish from GoReleaser)
# color: ''
#
# # URL to an image to use as the icon for the embed.
# icon_url: ''

0 comments on commit 338df18

Please sign in to comment.