mirror of
https://github.com/Alexandre1a/GoSH.git
synced 2026-03-10 03:29:47 +01:00
Created the first release!
This commit is contained in:
parent
4ba364427c
commit
964c8eca74
25
.github/workflows/go.yml
vendored
25
.github/workflows/go.yml
vendored
@ -3,6 +3,7 @@ name: Go
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
tags: ["v*"] # Déclenche aussi le workflow quand un tag est poussé
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
@ -47,8 +48,28 @@ jobs:
|
|||||||
|
|
||||||
ls -lh dist/
|
ls -lh dist/
|
||||||
|
|
||||||
- name: Upload binaries
|
- name: Upload binaries as artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: gosh
|
name: gosh-binaries
|
||||||
path: dist/
|
path: dist/
|
||||||
|
|
||||||
|
release:
|
||||||
|
needs: build-multiarch
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v') # Exécuter uniquement pour les tags commençant par "v"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Download built binaries
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: gosh-binaries
|
||||||
|
path: dist/
|
||||||
|
|
||||||
|
- name: Create GitHub Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: dist/*
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user