diff --git a/.gitignore b/.gitignore index 3de0e4a..6b84323 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /lure-updater.toml -/lure-updater \ No newline at end of file +/lure-updater +/dist/ \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..66a69e0 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,47 @@ +before: + hooks: + - go mod tidy +builds: + - id: lure-updater + env: + - CGO_ENABLED=0 + binary: lure-updater + goos: + - linux + goarch: + - amd64 + - 386 + - arm64 + - arm +archives: + - id: archive + name_template: >- + {{ .ProjectName }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "arm64"}}aarch64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + files: + - lure-updater.example.toml +blobs: + - provider: s3 + endpoint: https://api.minio.elara.ws + region: default + bucket: lure-updater + ids: + - archive + folder: "/" +release: + gitea: + owner: Elara6331 + name: lure-updater +gitea_urls: + api: 'https://gitea.elara.ws/api/v1/' + download: 'https://gitea.elara.ws' + skip_tls_verify: false +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc \ No newline at end of file diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..91bb4f9 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,8 @@ +pipeline: + release: + image: goreleaser/goreleaser + commands: + - goreleaser release + secrets: [ gitea_token, aws_access_key_id, aws_secret_access_key ] + when: + event: tag \ No newline at end of file