Skip to content

Commit 1527c7b

Browse files
committed
chore: migrate CI configuration from GitLab to GitHub Actions and update GoReleaser settings
1 parent 5c580b9 commit 1527c7b

3 files changed

Lines changed: 31 additions & 23 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: goreleaser
2+
3+
on:
4+
pull_request:
5+
push:
6+
tags:
7+
- "*"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: stable
24+
- name: Run GoReleaser
25+
uses: goreleaser/goreleaser-action@v6
26+
with:
27+
distribution: goreleaser
28+
version: "latest"
29+
args: release --clean
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitlab-ci.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.goreleaser.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
# This is an example .goreleaser.yml file with some sensible defaults.
2-
# Make sure to check the documentation at https://goreleaser.com
3-
41
# The lines below are called `modelines`. See `:help modeline`
52
# Feel free to remove those if you don't want/need to use them.
63
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
74
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
85

9-
gitlab_urls:
10-
api: https://gitlab.42paris.fr/api/v4
11-
download: https://gitlab.42paris.fr/
12-
136
version: 2
147

158
before:

0 commit comments

Comments
 (0)