Skip to content

Commit

Permalink
chore(workflow): update release workflow and permissions
Browse files Browse the repository at this point in the history
- Changed trigger from push tags to release creation
- Consolidated artifact download steps
- Added permissions for contents and packages
- Simplified Go version specification
  • Loading branch information
CoMfUcIoS committed Sep 14, 2024
1 parent 174def0 commit c27715a
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
---
name: Build and Release
on:
push:
tags: ['*']
release:
types: [created]
workflow_dispatch:
permissions:
contents: write
packages: write
jobs:
release:
name: Create GitHub Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Create GitHub Release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: ./binaries/*
generateReleaseNotes: true
makeLatest: true
name: ${{ github.ref_name }}
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
Expand All @@ -38,7 +25,5 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: https://dl.google.com/go/go1.22.0.linux-amd64.tar.gz
project_path: ./
binary_name: file-watcher
goversion: 1.22.0
extra_files: LICENSE README.md

0 comments on commit c27715a

Please sign in to comment.