Skip to content

Commit

Permalink
Merge pull request #14 from stakater-docker/fix-release-action
Browse files Browse the repository at this point in the history
Fix Relese github action
  • Loading branch information
Muneebstakater authored Mar 9, 2022
2 parents faf9ecf + 75ab1a2 commit 72ca1d0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
- "v*"

jobs:
build:
name: Release
release:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo

- name: Create Release
id: create_release
Expand All @@ -24,15 +24,16 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
# body:
draft: false
prerelease: false

- name: Notify Slack
uses: 8398a7/action-slack@v3
if: always()
if: always() # Pick up events even if the job fails or is canceled.
with:
status: ${{ job.status }}
fields: repo,author,action,eventName,ref,workflow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}

0 comments on commit 72ca1d0

Please sign in to comment.