diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b41784b..fe1892c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 @@ -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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} + SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}