Skip to content

Commit 98a8be2

Browse files
authored
Merge pull request #7 from SmilingPixel/workflow/fix-releaser-0731
fix: fix bugs in release workflow
2 parents 1ca8e60 + 5918288 commit 98a8be2

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.config/goreleaser.yaml

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

.github/workflows/go-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@ on:
66
push:
77
tags:
88
- 'v[0-9]+.[0-9]+.[0-9]+*' # This pattern matches tags like v1.0.0, v1.2.3, v1.0.0-alpha, etc.
9-
branches:
10-
- 'main'
11-
- 'workflow/*'
129

1310
# Allows you to run this workflow manually from the Actions tab
1411
workflow_dispatch:
1512

1613
jobs:
1714
# https://github.com/goreleaser/goreleaser-action
1815
goreleaser:
16+
permissions: write-all # https://stackoverflow.com/questions/70435286/resource-not-accessible-by-integration-on-github-post-repos-owner-repo-ac
1917
defaults:
2018
run:
2119
working-directory: ./scraper
@@ -38,6 +36,7 @@ jobs:
3836
# 'latest', 'nightly', or a semver
3937
version: 'latest'
4038
args: release --clean
39+
workdir: ./scraper
4140
env:
4241
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4342
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution

scraper/.config/goreleaser.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
8+
builds:
9+
- targets:
10+
- darwin_arm64

0 commit comments

Comments
 (0)