Skip to content

Commit

Permalink
change it3
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiAw committed Apr 7, 2023
1 parent a779d34 commit 7082110
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/release.yml
Expand Up @@ -4,29 +4,40 @@ on:
push:
pull_request:


permissions:
contents: write
# packages: write
# issues: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
with:
fetch-depth: 0

- run: git fetch --force --tags
- uses: actions/setup-go@v4
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: stable

- uses: goreleaser/goreleaser-action@v4
- name: Build and release
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --clean
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create tag
if: success()
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this release:
- ...
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7082110

Please sign in to comment.